ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.ErrorHandling.InterpreterException ----------------- Skript-Fehler: --------------- Der Suchschlüssel wurde in keinem Datensatz gefunden. --------------- Zeile 120, Spalte 3: system.writeFile( configFilePath, content ); --------------- Datei: C:\Users\Michael\AppData\Local\Zeta Producer 14\packaging\widgets\formular\standard.html --------------- Quelltext: 001: function SE636875075122339248() {} 002: 003: 004: SE636875075122339248.prototype.executeScript = function(){ 005: // Start source file: 'C:\Users\Michael\AppData\Local\Zeta Producer 14\packaging\widgets\formular\standard.html'. 006: 007: 008: var zpformversion = "zp14"; 009: if ( article.value("zpform-version", "14") !== "" ){ 010: zpformversion = "zp" + article.value("zpform-version", "14"); 011: } 012: 013: var action_url = article.value("action_url", ""); 014: if ( action_url.indexOf("http") !== 0 ){ 015: // action_url does not start with "http" and is thus absolute, so we need the pathToRoot 016: action_url = page.pathToRoot + action_url; 017: } 018: 019: var email_address = article.value("email_address", ""); 020: email_address = email_address.replace(/ /g,""); // remove blanks in email-address 021: email_address = system.encrypt(email_address); // encrypt email-address for anti spam measures 022: var email_subject = article.value("email_subject", ""); 023: var error_page_url = ( isNull(project.getPage(article.value("error_page_url").split("?")[0])) ) ? page.absoluteUrl : project.getPage(article.value("error_page_url").split("?")[0]).absoluteUrl; 024: var error_page_qs = article.value("error_page_url").split("?")[1] || ""; 025: if ( error_page_qs !== "" ){ 026: error_page_qs = "?" + error_page_qs; 027: } 028: var success_page_url = ( isNull(project.getPage(article.value("success_page_url").split("?")[0])) ) ? page.absoluteUrl : project.getPage(article.value("success_page_url").split("?")[0]).absoluteUrl; 029: var success_page_qs = article.value("success_page_url").split("?")[1] || ""; 030: if ( success_page_qs !== "" ){ 031: success_page_qs = "?" + success_page_qs; 032: } 033: 034: var siteKey = article.value("recaptcha-publickey", ""); 035: var secretKey = article.value("recaptcha-secretkey", ""); 036: var invisibleCaptcha = article.value("recaptcha-invisible", "0"); 037: var captchaConfigError = ""; 038: var defaultFieldWidth = 300; 039: var usesNewCaptcha = false; 040: var email_template; 041: var usesmtp = article.value("smtp-useSmtp", "0"); 042: if ( usesmtp == "1" ){ 043: usesmtp = "port: \'" + article.value("smtp-port","587") + "' ssl: '" + article.value("smtp-useSsl", "none") + "'"; 044: } 045: else{ 046: usesmtp = "no"; 047: } 048: 049: // display an error if Skript with new Captcha is chosen but no keys have been entered 050: if ( action_url.indexOf("assets/php/formmailer/SendEmailReCaptcha.php") > -1 ){ 051: usesNewCaptcha = true; 052: // verify that all keys are provided 053: if ( siteKey == "" || secretKey == "" ){ 054: captchaConfigError = "Unvollständige Formular-Konfiguration: Bitte geben Sie Ihre reCAPTCHA-Schlüssel in den Formulareinstellungen unter "Optionale reCAPTCHA-Sicherheitsprüfung" ein, oder wählen Sie in den Formular-Optionen ein anderes Skript."; 055: system.warn("Bitte geben Sie auf der Seite \"" + article.page.name + "\" Ihre reCAPTCHA-Schlüssel in den Formulareinstellungen unter \"Optionale reCAPTCHA-Sicherheitsprüfung\" ein, oder wählen Sie in den Formular-Optionen ein anderes Skript."); 056: } 057: 058: // allow only one form with new Captcha per Page 059: var pageArticles = page.articles; 060: var thisName = article.widgetName; 061: var formsWithCaptcha = []; 062: for ( var i=0; i < pageArticles.count; ++i ) { 063: var currentArticle = pageArticles.item(i); 064: if ( currentArticle.widgetName == thisName && currentArticle.value("action_url", "").indexOf("assets/php/formmailer/SendEmailReCaptcha.php") > -1 ){ 065: formsWithCaptcha.push(currentArticle.id); 066: } 067: } 068: if ( formsWithCaptcha.length > 1 && formsWithCaptcha[0] !== article.id ){ 069: // found multiple forms with new captcha 070: captchaConfigError = "Pro Seite ist nur ein Formular-Widget mit Skript \"Via PHP mit Sicherheitsprüfung (NEU)\" erlaubt! Löschen Sie überzählige Formulare oder fassen Sie die Formulare in einem zusammen."; 071: // log warning only once, for the first Article found 072: system.warn("Pro Seite ist nur ein Formular-Widget mit Skript \"Via PHP mit Sicherheitsprüfung (NEU)\" erlaubt! Auf der Seite \"" + article.page.name + "\" sind mehrere solche Artikel enthalten. Löschen Sie überzählige Formulare oder fassen Sie die Formulare in einem zusammen."); 073: } 074: } 075: 076: if( usesNewCaptcha && invisibleCaptcha == "1" ){ 077: var captchaClass = " zpicaptcha"; 078: } 079: else { 080: var captchaClass = ""; 081: } 082: 083: // PHP Config file generation 084: function append( appendTo, appendix ) { 085: return appendTo + appendix + "\r\n"; 086: } 087: function createFormConfig() { 088: var configFileName = article.id + "_config.inc.php"; 089: var configFilePath = project.outputFolder + "assets\\php\\formmailer\\" + configFileName; 090: email_template = article.valueExpanded("email_template",""); 091: if ( email_template == "" ){ 092: // sane default for when project was converted and template field doesn't exist yet, or user has accidentally emptied the field 093: email_template = '

Ein Formular wurde Ihnen von Ihrer Website gesendet

Jemand hat Ihnen ein Formular mit den folgenden Werten gesendet.

[FORM_TABLE]'; 094: } 095: //email_template = email_template.toString().replace(/"/g, """); 096: email_template = email_template.toString().replace(/'/g, "\\'"); 097: 098: var smtpPort = article.value("smtp-port","587") !== "" ? article.value("smtp-port","587") : "587"; 099: var smtpUseSsl = article.value("smtp-useSsl", "tls") !== "" ? article.value("smtp-useSsl", "tls") : "tls"; 100: 101: var content = ""; 102: content = append( content, ""); 118: 119: // Wegschreiben und intern in Publish-Queue hinzuügen. 120: system.writeFile( configFilePath, content ); 121: return; 122: } 123: 124: createFormConfig(); 125: 126: 127: context.write("\r\n\r\n"); 128: 129: context.write( system.partial("article-begin.html") ); 130: 131: context.write("\r\n\t"); 132: 133: if ( captchaConfigError ){ 134: if ( system.preview){ 135: 136: context.write("\r\n\t\t\t\t"); 137: 138: context.write( system.partial("article-headline.html") ); 139: 140: context.write("\r\n\t\t\t\t
\r\n\t\t\t\t\tFehler! \r\n\t\t\t\t\t

\r\n\t\t\t\t\t\t"); 141: 142: context.write( captchaConfigError ); 143: 144: context.write("\r\n\t\t\t\t\t

\r\n\t\t\t\t
\r\n\t"); 145: 146: } 147: } 148: else{ 149: 150: context.write("\r\n\t\t\t"); 151: 152: context.write( system.partial("article-headline.html") ); 153: 154: context.write("\r\n\t\t\t"); 155: 156: if ( article.headline == "" && system.preview ) { 157: // this adds a little spacer above the form if the form has no headline 158: // in order to improve inline-editing mouse-overs over the article/fields… 159: 160: 161: context.write("\r\n\t\t\t\t
\r\n\t\t\t"); 162: 163: } 164: 165: context.write("\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t \r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\r\n\t\t\t\t"); 218: 219: 220: for ( var i = 1; i <= article.value("element-count"); ++i ) { 221: var cssClass = ""; 222: if ( article.value("element-isrequired-" + i) ) { 223: cssClass += "required"; 224: } 225: var fieldID = article.valueRaw("element-id-" + i); // valueRaw() is used to avoid funny numbers like 6.36083191220278E+17 instead of 636083191220278100 TODO: have Uwe look into why? 226: //var fieldData = system.jsonParse(article.valueRaw("element-data-" + i)); 227: var jsonString = article.valueRaw("element-data-" + i) || '{"cssClass":"c12","newLine":true}'; 228: var fieldData = eval('(' + jsonString + ')'); 229: if ( fieldData.newLine == false ){ 230: var newlineCssClass = ""; 231: } 232: else{ 233: var newlineCssClass = " fieldinnewline"; // the Default 234: } 235: //system.log("FieldData: " + jsonString + " / cssClass: " + fieldData.cssClass); 236: if ( !article.valueRaw("element-data-" + i) ){ 237: // converted project without new width settings honor the width set in the form widget 238: var fieldWidth = article.value("element-width-" + i, 0); 239: if ( fieldWidth !== 0 ) { 240: fieldWidth = "width: " + fieldWidth + "px; "; 241: //fieldWidth = defaultFieldWidth; 242: } 243: else{ 244: fieldWidth = ""; 245: } 246: } 247: var elementAttributes = String(article.valueRaw("element-attributes-" + i, "")); 248: var cssInAttribute = ""; 249: if ( elementAttributes.match(/style=\"([^\"]+)\"/i) ) { 250: cssInAttribute = elementAttributes.match(/style=\"([^\"]+)\"/i)[1] || ""; 251: } 252: 253: 254: context.write("\r\n\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t"); 267: 268: 269: if ( article.value('element-type-' + i) == "radio" || 270: article.value('element-type-' + i) == "checkbox" || 271: article.value('element-type-' + i) == "file" 272: ){ 273: // we need this, so in css we can set a nice bottom margin on the container of checkboxes or radios as we can't set them on the form-field 274: var extraclass=" zp" + article.value('element-type-' + i); 275: } 276: else { 277: var extraclass=""; 278: } 279: 280: 281: context.write("\r\n\t\t\t\t\t"); 282: 283: if ( article.value("element-type-" + i) !== "hidden"){ 284: 285: context.write("\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t"); 329: 330: 331: } 332: switch (article.value("element-type-" + i)) { 333: // HTML Radio Buttons 334: case "radio": 335: 336: 337: context.write("\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t"); 346: 347: 348: var checkboxValues = article.valueRaw("element-value-" + i).toString().split(";"); 349: var fieldDefault = article.valueRaw("element-default-" + i); 350: 351: for ( var ii = 0; ii < checkboxValues.length; ++ii ) { 352: if ( ii > 0 ) { 353: cssClass = ""; //only print required class for first iteration of field 354: } 355: 356: 357: context.write("\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t"); 401: 402: if ( page.attribute("form_item_break") == "1" ) { 403: 404: context.write("
"); 405: 406: } 407: 408: context.write("\r\n\t\t\t\t\t\t\t\t"); 409: 410: 411: } 412: break; 413: // HTML Checkboxes 414: case "checkbox": 415: 416: 417: context.write("\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t"); 426: 427: 428: var checkboxValues = article.valueRaw("element-value-" + i).toString().split(";"); 429: var fieldDefault = article.valueRaw("element-default-" + i); 430: 431: for ( var ii = 0; ii < checkboxValues.length; ++ii ) { 432: if ( ii > 0 ) { 433: cssClass = ""; //only print required class for first iteration of field 434: } 435: 436: 437: context.write("\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t"); 481: 482: if ( page.attribute("form_item_break") == "1" ) { 483: 484: context.write("
"); 485: 486: } 487: 488: context.write("\r\n\t\t\t\t\t\t\t\t"); 489: 490: 491: } 492: break; 493: // HTML Select List 494: case "select": 495: var selectValues = article.valueRaw("element-value-" + i).toString().split(";"); 496: var fieldDefault = article.valueRaw("element-default-" + i); 497: var selectSize = "1"; 498: var selectSizeClass = ""; 499: if ( article.value("element-height-" + i) > 1 ) { 500: selectSize = article.value("element-height-" + i); 501: selectSizeClass = " zpmultilineselect"; 502: } 503: var selectMultiple = ""; 504: 505: if ( article.value("element-ismultiline-" + i) ) { 506: selectMultiple = "multiple"; 507: } 508: 509: 510: context.write("\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t"); 574: 575: 576: break; 577: // HTML input Text Field which could be of a new HTML5 type (email|number|color|search etc. --> see defaults in ./widget.json) 578: case "text": 579: var maxLength = ""; 580: var elementType = "text"; 581: if ( article.value("element-height-" + i) > 0 ) { 582: maxLength = ' maxlength="' + article.value("element-height-" + i) + '"'; 583: } 584: if ( article.value("element-inputtype-" + i) ){ 585: elementType = article.value("element-inputtype-" + i); 586: } 587: 588: 589: context.write("\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t"); 637: 638: 639: break; 640: // HTML Text-Area 641: case "textarea": 642: 643: 644: context.write("\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t"); 688: 689: 690: break; 691: // Hidden Text Field - ZP-Type "Zusatztext" 692: case "hidden": 693: 694: 695: context.write("\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t"); 716: 717: 718: break; 719: // ZP-Type "Beschreibungstext" 720: case "info": 721: 722: 723: context.write("\r\n\t\t\t\t\t\t\t\t"); 724: 725: context.write( article.value("element-value-" + i) ); 726: 727: context.write("\r\n\t\t\t\t\t\t\t\t"); 728: 729: 730: break; 731: // ZP-Type Separator Line 732: case "separator": 733: 734: 735: context.write("\r\n\t\t\t\t\t\t\t\t
 
\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t"); 736: 737: 738: break; 739: // ZP File Upload 740: case "file": 741: 742: 743: context.write("\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t"); 768: 769: 770: break; 771: // Default fallback HTML input with whatever element-type is passed 772: default: 773: 774: 775: context.write("\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t"); 812: 813: 814: break; 815: } // switch 816: 817: 818: context.write("\r\n\t\t\t\t\t"); 819: 820: if ( article.value("element-type-" + i) !== "hidden"){ 821: 822: context.write("\r\n\t\t\t\t\t
\r\n\t\t\t\t\t"); 823: 824: } 825: 826: context.write("\r\n\t\t\t\t"); 827: 828: 829: } // for 830: 831: 832: context.write(" \r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t"); 833: 834: if ( usesNewCaptcha && invisibleCaptcha == "0" ){ 835: // show Captcha V2 836: 837: context.write("\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t"); 846: 847: } else if ( usesNewCaptcha && invisibleCaptcha == "1" ){ 848: // show new Captcha invisible 849: 850: context.write("\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t"); 855: 856: } else { 857: // show old Captcha because the user selected the corresponding form action ends in "SendEmail.php" and not "?sc" 858: var scriptName = "SendEmail.php"; 859: if ( action_url.substring(action_url.length - scriptName.length, action_url.length) == scriptName ) { 860: 861: 862: context.write("\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t"); 867: 868: 869: } 870: } 871: 872: context.write("\r\n\t\t\t\t
\r\n\t\t\t\t"); 873: 874: if ( usesNewCaptcha && invisibleCaptcha == "1" ){ 875: // show new Captcha invisible 876: 877: context.write("\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t"); 882: 883: } 884: 885: context.write("\r\n\t\t\t\t\r\n\t\t\t\t"); 886: 887: if ( "false" == "true" ) { 888: 889: context.write(""); 890: 891: } 892: 893: context.write("\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t"); 898: 899: } 900: 901: context.write("\r\n"); 902: 903: context.write( system.partial("article-end.html") ); 904: 905: context.write("\r\n"); 906: // End source file: 'C:\Users\Michael\AppData\Local\Zeta Producer 14\packaging\widgets\formular\standard.html'. 907: }; 908: 909: /* Shortcuts. */ 910: article = context.article; 911: page = context.page; 912: projectFolder = context.projectFolder; 913: project = context.project; 914: system = context.system; 915: 916: 917: new SE636875075122339248().executeScript(); ----------------- bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.ThrowHostException(Exception exception) in c:\P\ZP\14.3\ZetaProducerMain\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 108. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\P\ZP\14.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreterHelper.cs:Zeile 224. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreter.doRun(RenderingContext renderingContext, String runString) in c:\P\ZP\14.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreter.cs:Zeile 42. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreter.Run(RenderingContext renderingContext, String runString) in c:\P\ZP\14.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreter.cs:Zeile 21. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.HighLevel.RenderingScriptProcessor.Process(String textToProcess) in c:\P\ZP\14.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\HighLevel\RenderingScriptProcessor.cs:Zeile 25. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Macros.RenderingScriptingMacrosNew.doProcess(String textToProcess) in c:\P\ZP\14.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Macros\RenderingScriptingMacrosNew.cs:Zeile 36. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Macros.RenderingScriptingMacrosNew.Process(String textToProcess) in c:\P\ZP\14.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Macros\RenderingScriptingMacrosNew.cs:Zeile 24. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Core.RenderingDispatcher.doProcess(String textToProcess) in c:\P\ZP\14.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Core\RenderingDispatcher.cs:Zeile 49. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Core.RenderingDispatcher.Process(String textToProcess) in c:\P\ZP\14.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Core\RenderingDispatcher.cs:Zeile 28. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Dom.WebArticleScriptObject.doDispatch(String textToProcess, String filePath, WebArticle article, Nullable`1 makeAllRenderedUrlsAbsolute) in c:\P\ZP\14.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Dom\WebArticleScriptObject.cs:Zeile 340. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Dom.WebArticleScriptObject.render(Object makeAllRenderedUrlsAbsolute) in c:\P\ZP\14.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Dom\WebArticleScriptObject.cs:Zeile 250. InterpreterException { ErrorDetailsWithStack="Der Suchschlüssel wurde in keinem Datensatz gefunden.", CompleteSourceTextWithHiddenRegions="001: function SE636875075122339248() {}\\r\\n002: \\r\\n003: \\r\\n004: SE636875075122339248.prototype.executeScript = function(){\\r\\n005: // Start source file: \\'C:\\Users\\Michael\\AppData\\Local\\Zeta Producer 14\\packaging\\widgets\\formular\\standard.html\\'.\\r\\n006: \\r\\n007: \\r\\n008: \\tvar zpformversion = \\"zp14\\";\\r\\n009: \\tif ( article.value(\\"zpform-version\\", \\"14\\") !== \\"\\" ){\\r\\n010: \\t\\tzpformversion = \\"zp\\" + article.value(\\"zpform-version\\", \\"14\\");\\r\\n011: \\t}\\r\\n012: \\t\\r\\n013: \\tvar action_url = article.value(\\"action_url\\", \\"\\");\\r\\n014: \\tif ( action_url.indexOf(\\"http\\") !== 0 ){\\r\\n015: \\t\\t// action_url does not start with \\"http\\" and is thus absolute, so we need the pathToRoot\\r\\n016: \\t\\taction_url = page.pathToRoot + action_url;\\r\\n017: \\t}\\r\\n018: \\t\\r\\n019: \\tvar email_address = article.value(\\"email_address\\", \\"\\");\\r\\n020: \\temail_address = email_address.replace(/ /g,\\"\\"); \\t// remove blanks in email-address\\r\\n021: \\temail_address = system.encrypt(email_address);\\t\\t// encrypt email-address for anti spam measures\\r\\n022: \\tvar email_subject = article.value(\\"email_subject\\", \\"\\");\\r\\n023: \\tvar error_page_url = ( isNull(project.getPage(article.value(\\"error_page_url\\").split(\\"?\\")[0])) ) ? page.absoluteUrl : project.getPage(article.value(\\"error_page_url\\").split(\\"?\\")[0]).absoluteUrl;\\r\\n024: \\tvar error_page_qs = article.value(\\"error_page_url\\").split(\\"?\\")[1] || \\"\\";\\r\\n025: \\tif ( error_page_qs !== \\"\\" ){\\r\\n026: \\t\\terror_page_qs = \\"?\\" + error_page_qs;\\r\\n027: \\t}\\r\\n028: \\tvar success_page_url = ( isNull(project.getPage(article.value(\\"success_page_url\\").split(\\"?\\")[0])) ) ? page.absoluteUrl : project.getPage(article.value(\\"success_page_url\\").split(\\"?\\")[0]).absoluteUrl;\\r\\n029: \\tvar success_page_qs = article.value(\\"success_page_url\\").split(\\"?\\")[1] || \\"\\";\\r\\n030: \\tif ( success_page_qs !== \\"\\" ){\\r\\n031: \\t\\tsuccess_page_qs = \\"?\\" + success_page_qs;\\r\\n032: \\t}\\r\\n033: \\t\\r\\n034: \\tvar siteKey = article.value(\\"recaptcha-publickey\\", \\"\\");\\r\\n035: \\tvar secretKey = article.value(\\"recaptcha-secretkey\\", \\"\\");\\r\\n036: \\tvar invisibleCaptcha = article.value(\\"recaptcha-invisible\\", \\"0\\");\\r\\n037: \\tvar captchaConfigError = \\"\\";\\r\\n038: \\tvar defaultFieldWidth = 300;\\r\\n039: \\tvar usesNewCaptcha = false;\\r\\n040: \\tvar email_template;\\r\\n041: \\tvar usesmtp = article.value(\\"smtp-useSmtp\\", \\"0\\");\\r\\n042: \\tif ( usesmtp == \\"1\\" ){\\r\\n043: \\t\\tusesmtp = \\"port: \\\\'\\" + article.value(\\"smtp-port\\",\\"587\\") + \\"' ssl: '\\" + article.value(\\"smtp-useSsl\\", \\"none\\") + \\"'\\";\\r\\n044: \\t}\\r\\n045: \\telse{\\r\\n046: \\t\\tusesmtp = \\"no\\";\\r\\n047: \\t}\\r\\n048: \\t\\r\\n049: \\t// display an error if Skript with new Captcha is chosen but no keys have been entered\\r\\n050: \\tif ( action_url.indexOf(\\"assets/php/formmailer/SendEmailReCaptcha.php\\") > -1 ){\\r\\n051: \\t\\tusesNewCaptcha = true;\\r\\n052: \\t\\t// verify that all keys are provided\\r\\n053: \\t\\tif ( siteKey == \\"\\" || secretKey == \\"\\" ){\\r\\n054: \\t\\t\\tcaptchaConfigError = \\"Unvollständige Formular-Konfiguration: Bitte geben Sie Ihre reCAPTCHA-Schlüssel in den Formulareinstellungen unter "Optionale reCAPTCHA-Sicherheitsprüfung" ein, oder wählen Sie in den Formular-Optionen ein anderes Skript.\\";\\r\\n055: \\t\\t\\tsystem.warn(\\"Bitte geben Sie auf der Seite \\\\"\\" + article.page.name + \\"\\\\" Ihre reCAPTCHA-Schlüssel in den Formulareinstellungen unter \\\\"Optionale reCAPTCHA-Sicherheitsprüfung\\\\" ein, oder wählen Sie in den Formular-Optionen ein anderes Skript.\\");\\r\\n056: \\t\\t}\\r\\n057: \\t\\t\\r\\n058: \\t\\t// allow only one form with new Captcha per Page\\r\\n059: \\t\\tvar pageArticles = page.articles;\\r\\n060: \\t\\tvar thisName = article.widgetName;\\r\\n061: \\t\\tvar formsWithCaptcha = [];\\r\\n062: \\t\\tfor ( var i=0; i < pageArticles.count; ++i ) {\\r\\n063: \\t\\t\\tvar currentArticle = pageArticles.item(i); \\r\\n064: \\t\\t\\tif ( currentArticle.widgetName == thisName && currentArticle.value(\\"action_url\\", \\"\\").indexOf(\\"assets/php/formmailer/SendEmailReCaptcha.php\\") > -1 ){\\r\\n065: \\t\\t\\t\\tformsWithCaptcha.push(currentArticle.id);\\r\\n066: \\t\\t\\t}\\r\\n067: \\t\\t}\\r\\n068: \\t\\tif ( formsWithCaptcha.length > 1 && formsWithCaptcha[0] !== article.id ){\\r\\n069: \\t\\t\\t// found multiple forms with new captcha \\r\\n070: \\t\\t\\tcaptchaConfigError = \\"Pro Seite ist nur ein Formular-Widget mit Skript \\\\"Via PHP mit Sicherheitsprüfung (NEU)\\\\" erlaubt! Löschen Sie überzählige Formulare oder fassen Sie die Formulare in einem zusammen.\\";\\r\\n071: \\t\\t\\t// log warning only once, for the first Article found\\r\\n072: \\t\\t\\tsystem.warn(\\"Pro Seite ist nur ein Formular-Widget mit Skript \\\\"Via PHP mit Sicherheitsprüfung (NEU)\\\\" erlaubt! Auf der Seite \\\\"\\" + article.page.name + \\"\\\\" sind mehrere solche Artikel enthalten. Löschen Sie überzählige Formulare oder fassen Sie die Formulare in einem zusammen.\\");\\r\\n073: \\t\\t}\\r\\n074: \\t}\\r\\n075: \\t\\r\\n076: \\tif( usesNewCaptcha && invisibleCaptcha == \\"1\\" ){\\r\\n077: \\t\\tvar captchaClass = \\" zpicaptcha\\";\\r\\n078: \\t}\\r\\n079: \\telse {\\r\\n080: \\t\\tvar captchaClass = \\"\\";\\r\\n081: \\t}\\r\\n082: \\t\\r\\n083: \\t// PHP Config file generation\\r\\n084: \\tfunction append( appendTo, appendix ) {\\r\\n085: \\t\\treturn appendTo + appendix + \\"\\r\\n\\";\\r\\n086: \\t}\\r\\n087: \\tfunction createFormConfig() {\\r\\n088: \\t\\tvar configFileName = article.id + \\"_config.inc.php\\";\\r\\n089: \\t\\tvar configFilePath = project.outputFolder + \\"assets\\\\php\\\\formmailer\\\\\\" + configFileName;\\r\\n090: \\t\\temail_template = article.valueExpanded(\\"email_template\\",\\"\\");\\r\\n091: \\t\\tif ( email_template == \\"\\" ){\\r\\n092: \\t\\t\\t// sane default for when project was converted and template field doesn\\'t exist yet, or user has accidentally emptied the field\\r\\n093: \\t\\t\\temail_template = \\'

Ein Formular wurde Ihnen von Ihrer Website gesendet

Jemand hat Ihnen ein Formular mit den folgenden Werten gesendet.

[FORM_TABLE]\\';\\r\\n094: \\t\\t}\\r\\n095: \\t\\t//email_template = email_template.toString().replace(/\\"/g, \\""\\"); \\r\\n096: \\t\\temail_template = email_template.toString().replace(/\\'/g, \\"\\\\\\'\\"); \\r\\n097: \\t\\t\\r\\n098: \\t\\tvar smtpPort = article.value(\\"smtp-port\\",\\"587\\") !== \\"\\" ? article.value(\\"smtp-port\\",\\"587\\") : \\"587\\";\\r\\n099: \\t\\tvar smtpUseSsl = article.value(\\"smtp-useSsl\\", \\"tls\\") !== \\"\\" ? article.value(\\"smtp-useSsl\\", \\"tls\\") : \\"tls\\";\\r\\n100: \\t\\t\\r\\n101: \\t\\tvar content = \\"\\";\\r\\n102: \\t\\tcontent = append( content, \\"\\");\\r\\n118: \\t\\t\\r\\n119: \\t\\t// Wegschreiben und intern in Publish-Queue hinzuügen.\\r\\n120: \\t\\tsystem.writeFile( configFilePath, content );\\r\\n121: \\t\\treturn;\\r\\n122: \\t}\\r\\n123: \\t\\r\\n124: \\tcreateFormConfig();\\t\\r\\n125: \\r\\n126: \\r\\n127: context.write(\\"\\r\\n\\r\\n\\");\\r\\n128: \\r\\n129: context.write( system.partial(\\"article-begin.html\\") );\\r\\n130: \\r\\n131: context.write(\\"\\r\\n\\t\\");\\r\\n132: \\r\\n133: if ( captchaConfigError ){ \\r\\n134: \\t\\t\\tif ( system.preview){ \\r\\n135: \\r\\n136: context.write(\\"\\r\\n\\t\\t\\t\\t\\");\\r\\n137: \\r\\n138: context.write( system.partial(\\"article-headline.html\\") );\\r\\n139: \\r\\n140: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\tFehler! \\r\\n\\t\\t\\t\\t\\t

\\r\\n\\t\\t\\t\\t\\t\\t\\");\\r\\n141: \\r\\n142: context.write( captchaConfigError );\\r\\n143: \\r\\n144: context.write(\\"\\r\\n\\t\\t\\t\\t\\t

\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\");\\r\\n145: \\r\\n146: \\t\\t}\\r\\n147: \\t\\t}\\r\\n148: \\t\\telse{ \\r\\n149: \\r\\n150: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n151: \\r\\n152: context.write( system.partial(\\"article-headline.html\\") );\\r\\n153: \\r\\n154: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n155: \\r\\n156: if ( article.headline == \\"\\" && system.preview ) { \\r\\n157: \\t\\t\\t\\t// this adds a little spacer above the form if the form has no headline\\r\\n158: \\t\\t\\t\\t// in order to improve inline-editing mouse-overs over the article/fields…\\r\\n159: \\t\\t\\t\\r\\n160: \\r\\n161: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n162: \\r\\n163: } \\r\\n164: \\r\\n165: context.write(\\"\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\r\\n\\t\\t\\t\\t\\");\\r\\n218: \\r\\n219: \\r\\n220: \\t\\t\\t\\tfor ( var i = 1; i <= article.value(\\"element-count\\"); ++i ) { \\r\\n221: \\t\\t\\t\\t\\tvar cssClass = \\"\\";\\r\\n222: \\t\\t\\t\\t\\tif ( article.value(\\"element-isrequired-\\" + i) ) {\\r\\n223: \\t\\t\\t\\t\\t\\tcssClass += \\"required\\";\\r\\n224: \\t\\t\\t\\t\\t}\\r\\n225: \\t\\t\\t\\t\\tvar fieldID = article.valueRaw(\\"element-id-\\" + i); // valueRaw() is used to avoid funny numbers like 6.36083191220278E+17 instead of 636083191220278100 TODO: have Uwe look into why?\\r\\n226: \\t\\t\\t\\t\\t//var fieldData = system.jsonParse(article.valueRaw(\\"element-data-\\" + i));\\r\\n227: \\t\\t\\t\\t\\tvar jsonString = article.valueRaw(\\"element-data-\\" + i) || \\'{\\"cssClass\\":\\"c12\\",\\"newLine\\":true}\\';\\r\\n228: \\t\\t\\t\\t\\tvar fieldData = eval(\\'(\\' + jsonString + \\')\\');\\r\\n229: \\t\\t\\t\\t\\tif ( fieldData.newLine == false ){\\r\\n230: \\t\\t\\t\\t\\t\\tvar newlineCssClass = \\"\\";\\r\\n231: \\t\\t\\t\\t\\t}\\r\\n232: \\t\\t\\t\\t\\telse{\\r\\n233: \\t\\t\\t\\t\\t\\tvar newlineCssClass = \\" fieldinnewline\\"; \\t// the Default\\r\\n234: \\t\\t\\t\\t\\t}\\r\\n235: \\t\\t\\t\\t\\t//system.log(\\"FieldData: \\" + jsonString + \\" / cssClass: \\" + fieldData.cssClass);\\r\\n236: \\t\\t\\t\\t\\tif ( !article.valueRaw(\\"element-data-\\" + i) ){\\r\\n237: \\t\\t\\t\\t\\t\\t// converted project without new width settings honor the width set in the form widget\\r\\n238: \\t\\t\\t\\t\\t\\tvar fieldWidth = article.value(\\"element-width-\\" + i, 0);\\r\\n239: \\t\\t\\t\\t\\t\\tif ( fieldWidth !== 0 ) {\\r\\n240: \\t\\t\\t\\t\\t\\t\\tfieldWidth = \\"width: \\" + fieldWidth + \\"px; \\";\\r\\n241: \\t\\t\\t\\t\\t\\t\\t//fieldWidth = defaultFieldWidth;\\r\\n242: \\t\\t\\t\\t\\t\\t}\\r\\n243: \\t\\t\\t\\t\\t\\telse{\\r\\n244: \\t\\t\\t\\t\\t\\t\\tfieldWidth = \\"\\";\\r\\n245: \\t\\t\\t\\t\\t\\t}\\r\\n246: \\t\\t\\t\\t\\t}\\r\\n247: \\t\\t\\t\\t\\tvar elementAttributes = String(article.valueRaw(\\"element-attributes-\\" + i, \\"\\"));\\r\\n248: \\t\\t\\t\\t\\tvar cssInAttribute = \\"\\";\\r\\n249: \\t\\t\\t\\t\\tif ( elementAttributes.match(/style=\\\\"([^\\\\"]+)\\\\"/i) ) {\\r\\n250: \\t\\t\\t\\t\\t\\tcssInAttribute = elementAttributes.match(/style=\\\\"([^\\\\"]+)\\\\"/i)[1] || \\"\\";\\r\\n251: \\t\\t\\t\\t\\t}\\r\\n252: \\t\\t\\t\\t\\t \\r\\n253: \\r\\n254: context.write(\\"\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n267: \\r\\n268: \\r\\n269: \\t\\t\\t\\t\\t\\tif ( article.value(\\'element-type-\\' + i) == \\"radio\\" || \\r\\n270: \\t\\t\\t\\t\\t\\t article.value(\\'element-type-\\' + i) == \\"checkbox\\" || \\r\\n271: \\t\\t\\t\\t\\t\\t article.value(\\'element-type-\\' + i) == \\"file\\" \\r\\n272: \\t\\t\\t\\t\\t\\t){\\r\\n273: \\t\\t\\t\\t\\t\\t\\t// we need this, so in css we can set a nice bottom margin on the container of checkboxes or radios as we can\\'t set them on the form-field\\r\\n274: \\t\\t\\t\\t\\t\\t\\tvar extraclass=\\" zp\\" + article.value(\\'element-type-\\' + i);\\r\\n275: \\t\\t\\t\\t\\t\\t}\\r\\n276: \\t\\t\\t\\t\\t\\telse {\\r\\n277: \\t\\t\\t\\t\\t\\t\\tvar extraclass=\\"\\";\\r\\n278: \\t\\t\\t\\t\\t\\t}\\r\\n279: \\t\\t\\t\\t\\t\\r\\n280: \\r\\n281: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n282: \\r\\n283: if ( article.value(\\"element-type-\\" + i) !== \\"hidden\\"){ \\r\\n284: \\r\\n285: context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t>\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n329: \\r\\n330: \\r\\n331: \\t\\t\\t\\t\\t}\\r\\n332: \\t\\t\\t\\t\\t\\tswitch (article.value(\\"element-type-\\" + i)) {\\r\\n333: \\t\\t\\t\\t\\t\\t\\t// HTML Radio Buttons\\r\\n334: \\t\\t\\t\\t\\t\\t\\tcase \\"radio\\":\\r\\n335: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n336: \\r\\n337: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n346: \\r\\n347: \\r\\n348: \\t\\t\\t\\t\\t\\t\\tvar checkboxValues = article.valueRaw(\\"element-value-\\" + i).toString().split(\\";\\");\\r\\n349: \\t\\t\\t\\t\\t\\t\\tvar fieldDefault = article.valueRaw(\\"element-default-\\" + i);\\r\\n350: \\t\\t\\r\\n351: \\t\\t\\t\\t\\t\\t\\t\\tfor ( var ii = 0; ii < checkboxValues.length; ++ii ) {\\r\\n352: \\t\\t\\t\\t\\t\\t\\t\\t\\tif ( ii > 0 ) {\\r\\n353: \\t\\t\\t\\t\\t\\t\\t\\t\\t\\tcssClass = \\"\\"; //only print required class for first iteration of field \\r\\n354: \\t\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n355: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n356: \\r\\n357: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n401: \\r\\n402: if ( page.attribute(\\"form_item_break\\") == \\"1\\" ) { \\r\\n403: \\r\\n404: context.write(\\"
\\");\\r\\n405: \\r\\n406: } \\r\\n407: \\r\\n408: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n409: \\r\\n410: \\r\\n411: \\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n412: \\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n413: \\t\\t\\t\\t\\t\\t\\t// HTML Checkboxes \\r\\n414: \\t\\t\\t\\t\\t\\t\\tcase \\"checkbox\\":\\r\\n415: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n416: \\r\\n417: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n426: \\r\\n427: \\r\\n428: \\t\\t\\t\\t\\t\\t\\t\\tvar checkboxValues = article.valueRaw(\\"element-value-\\" + i).toString().split(\\";\\");\\r\\n429: \\t\\t\\t\\t\\t\\t\\t\\tvar fieldDefault = article.valueRaw(\\"element-default-\\" + i);\\r\\n430: \\t\\t\\t\\t\\t\\r\\n431: \\t\\t\\t\\t\\t\\t\\t\\tfor ( var ii = 0; ii < checkboxValues.length; ++ii ) {\\r\\n432: \\t\\t\\t\\t\\t\\t\\t\\t\\tif ( ii > 0 ) {\\r\\n433: \\t\\t\\t\\t\\t\\t\\t\\t\\t\\tcssClass = \\"\\"; //only print required class for first iteration of field \\r\\n434: \\t\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n435: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n436: \\r\\n437: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n481: \\r\\n482: if ( page.attribute(\\"form_item_break\\") == \\"1\\" ) { \\r\\n483: \\r\\n484: context.write(\\"
\\");\\r\\n485: \\r\\n486: } \\r\\n487: \\r\\n488: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n489: \\r\\n490: \\r\\n491: \\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n492: \\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n493: \\t\\t\\t\\t\\t\\t\\t// HTML Select List\\r\\n494: \\t\\t\\t\\t\\t\\t\\tcase \\"select\\":\\r\\n495: \\t\\t\\t\\t\\t\\t\\t\\tvar selectValues = article.valueRaw(\\"element-value-\\" + i).toString().split(\\";\\");\\r\\n496: \\t\\t\\t\\t\\t\\t\\t\\tvar fieldDefault = article.valueRaw(\\"element-default-\\" + i);\\r\\n497: \\t\\t\\t\\t\\t\\t\\t\\tvar selectSize = \\"1\\";\\r\\n498: \\t\\t\\t\\t\\t\\t\\t\\tvar selectSizeClass = \\"\\";\\r\\n499: \\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-height-\\" + i) > 1 ) {\\r\\n500: \\t\\t\\t\\t\\t\\t\\t\\t\\tselectSize = article.value(\\"element-height-\\" + i);\\r\\n501: \\t\\t\\t\\t\\t\\t\\t\\t\\tselectSizeClass = \\" zpmultilineselect\\";\\r\\n502: \\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n503: \\t\\t\\t\\t\\t\\t\\t\\tvar selectMultiple = \\"\\";\\r\\n504: \\t\\t\\t\\t\\t\\t\\t\\t\\r\\n505: \\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-ismultiline-\\" + i) ) {\\r\\n506: \\t\\t\\t\\t\\t\\t\\t\\t\\tselectMultiple = \\"multiple\\";\\r\\n507: \\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n508: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n509: \\r\\n510: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n574: \\r\\n575: \\r\\n576: \\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n577: \\t\\t\\t\\t\\t\\t\\t// HTML input Text Field which could be of a new HTML5 type (email|number|color|search etc. --> see defaults in ./widget.json)\\r\\n578: \\t\\t\\t\\t\\t\\t\\tcase \\"text\\":\\r\\n579: \\t\\t\\t\\t\\t\\t\\t\\tvar maxLength = \\"\\";\\r\\n580: \\t\\t\\t\\t\\t\\t\\t\\tvar elementType = \\"text\\";\\r\\n581: \\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-height-\\" + i) > 0 ) {\\r\\n582: \\t\\t\\t\\t\\t\\t\\t\\t\\tmaxLength = \\' maxlength=\\"\\' + article.value(\\"element-height-\\" + i) + \\'\\"\\';\\r\\n583: \\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n584: \\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-inputtype-\\" + i) ){\\r\\n585: \\t\\t\\t\\t\\t\\t\\t\\t\\telementType = article.value(\\"element-inputtype-\\" + i);\\r\\n586: \\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n587: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n588: \\r\\n589: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n637: \\r\\n638: \\r\\n639: \\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n640: \\t\\t\\t\\t\\t\\t\\t// HTML Text-Area\\r\\n641: \\t\\t\\t\\t\\t\\t\\tcase \\"textarea\\":\\r\\n642: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n643: \\r\\n644: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n688: \\r\\n689: \\r\\n690: \\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n691: \\t\\t\\t\\t\\t\\t\\t// Hidden Text Field - ZP-Type \\"Zusatztext\\"\\r\\n692: \\t\\t\\t\\t\\t\\t\\tcase \\"hidden\\":\\r\\n693: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n694: \\r\\n695: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n716: \\r\\n717: \\r\\n718: \\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n719: \\t\\t\\t\\t\\t\\t\\t// ZP-Type \\"Beschreibungstext\\"\\r\\n720: \\t\\t\\t\\t\\t\\t\\tcase \\"info\\":\\r\\n721: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n722: \\r\\n723: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n724: \\r\\n725: context.write( article.value(\\"element-value-\\" + i) );\\r\\n726: \\r\\n727: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n728: \\r\\n729: \\r\\n730: \\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n731: \\t\\t\\t\\t\\t\\t\\t// ZP-Type Separator Line\\r\\n732: \\t\\t\\t\\t\\t\\t\\tcase \\"separator\\":\\r\\n733: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n734: \\r\\n735: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t
 
\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n736: \\r\\n737: \\r\\n738: \\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n739: \\t\\t\\t\\t\\t\\t\\t// ZP File Upload\\r\\n740: \\t\\t\\t\\t\\t\\t\\tcase \\"file\\":\\r\\n741: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n742: \\r\\n743: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n768: \\r\\n769: \\t\\r\\n770: \\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n771: \\t\\t\\t\\t\\t\\t\\t// Default fallback HTML input with whatever element-type is passed\\r\\n772: \\t\\t\\t\\t\\t\\t\\tdefault:\\r\\n773: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n774: \\r\\n775: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n812: \\r\\n813: \\t\\r\\n814: \\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n815: \\t\\t\\t\\t\\t\\t} // switch\\r\\n816: \\t\\t\\t\\t\\t\\t\\r\\n817: \\r\\n818: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n819: \\r\\n820: if ( article.value(\\"element-type-\\" + i) !== \\"hidden\\"){ \\r\\n821: \\r\\n822: context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n823: \\r\\n824: } \\r\\n825: \\r\\n826: context.write(\\"\\r\\n\\t\\t\\t\\t\\");\\r\\n827: \\r\\n828: \\r\\n829: \\t\\t\\t\\t} // for\\r\\n830: \\t\\t\\t\\t\\r\\n831: \\r\\n832: context.write(\\" \\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\");\\r\\n833: \\r\\n834: if ( usesNewCaptcha && invisibleCaptcha == \\"0\\" ){ \\t\\r\\n835: \\t\\t\\t\\t\\t// show Captcha V2 \\r\\n836: \\r\\n837: context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n846: \\r\\n847: } else if ( usesNewCaptcha && invisibleCaptcha == \\"1\\" ){ \\t\\r\\n848: \\t\\t\\t\\t\\t// show new Captcha invisible \\r\\n849: \\r\\n850: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\");\\r\\n855: \\r\\n856: } else {\\t\\r\\n857: \\t\\t\\t\\t\\t// show old Captcha because the user selected the corresponding form action ends in \\"SendEmail.php\\" and not \\"?sc\\"\\r\\n858: \\t\\t\\t\\t\\tvar scriptName = \\"SendEmail.php\\";\\r\\n859: \\t\\t\\t\\t\\tif ( action_url.substring(action_url.length - scriptName.length, action_url.length) == scriptName ) { \\r\\n860: \\t\\t\\t\\t\\t\\t\\r\\n861: \\r\\n862: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t\\");\\r\\n867: \\r\\n868: \\r\\n869: \\t\\t\\t\\t\\t}\\r\\n870: \\t\\t\\t\\t} \\r\\n871: \\r\\n872: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n873: \\r\\n874: if ( usesNewCaptcha && invisibleCaptcha == \\"1\\" ){ \\t\\r\\n875: \\t\\t\\t\\t\\t// show new Captcha invisible \\r\\n876: \\r\\n877: context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n882: \\r\\n883: } \\r\\n884: \\r\\n885: context.write(\\"\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\");\\r\\n886: \\r\\n887: if ( \\"false\\" == \\"true\\" ) { \\r\\n888: \\r\\n889: context.write(\\"\\");\\r\\n890: \\r\\n891: } \\r\\n892: \\r\\n893: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\");\\r\\n898: \\r\\n899: } \\r\\n900: \\r\\n901: context.write(\\"\\r\\n\\");\\r\\n902: \\r\\n903: context.write( system.partial(\\"article-end.html\\") );\\r\\n904: \\r\\n905: context.write(\\"\\r\\n\\");\\r\\n906: // End source file: \\'C:\\Users\\Michael\\AppData\\Local\\Zeta Producer 14\\packaging\\widgets\\formular\\standard.html\\'.\\r\\n907: };\\r\\n908: \\r\\n909: /* Shortcuts. */\\r\\n910: article = context.article;\\r\\n911: page = context.page;\\r\\n912: projectFolder = context.projectFolder;\\r\\n913: project = context.project;\\r\\n914: system = context.system;\\r\\n915: \\r\\n916: \\r\\n917: new SE636875075122339248().executeScript();\\r\\n", CompleteSourceText="001: function SE636875075122339248() {}\\r\\n002: \\r\\n003: \\r\\n004: SE636875075122339248.prototype.executeScript = function(){\\r\\n005: // Start source file: \\'C:\\Users\\Michael\\AppData\\Local\\Zeta Producer 14\\packaging\\widgets\\formular\\standard.html\\'.\\r\\n006: \\r\\n007: \\r\\n008: \\tvar zpformversion = \\"zp14\\";\\r\\n009: \\tif ( article.value(\\"zpform-version\\", \\"14\\") !== \\"\\" ){\\r\\n010: \\t\\tzpformversion = \\"zp\\" + article.value(\\"zpform-version\\", \\"14\\");\\r\\n011: \\t}\\r\\n012: \\t\\r\\n013: \\tvar action_url = article.value(\\"action_url\\", \\"\\");\\r\\n014: \\tif ( action_url.indexOf(\\"http\\") !== 0 ){\\r\\n015: \\t\\t// action_url does not start with \\"http\\" and is thus absolute, so we need the pathToRoot\\r\\n016: \\t\\taction_url = page.pathToRoot + action_url;\\r\\n017: \\t}\\r\\n018: \\t\\r\\n019: \\tvar email_address = article.value(\\"email_address\\", \\"\\");\\r\\n020: \\temail_address = email_address.replace(/ /g,\\"\\"); \\t// remove blanks in email-address\\r\\n021: \\temail_address = system.encrypt(email_address);\\t\\t// encrypt email-address for anti spam measures\\r\\n022: \\tvar email_subject = article.value(\\"email_subject\\", \\"\\");\\r\\n023: \\tvar error_page_url = ( isNull(project.getPage(article.value(\\"error_page_url\\").split(\\"?\\")[0])) ) ? page.absoluteUrl : project.getPage(article.value(\\"error_page_url\\").split(\\"?\\")[0]).absoluteUrl;\\r\\n024: \\tvar error_page_qs = article.value(\\"error_page_url\\").split(\\"?\\")[1] || \\"\\";\\r\\n025: \\tif ( error_page_qs !== \\"\\" ){\\r\\n026: \\t\\terror_page_qs = \\"?\\" + error_page_qs;\\r\\n027: \\t}\\r\\n028: \\tvar success_page_url = ( isNull(project.getPage(article.value(\\"success_page_url\\").split(\\"?\\")[0])) ) ? page.absoluteUrl : project.getPage(article.value(\\"success_page_url\\").split(\\"?\\")[0]).absoluteUrl;\\r\\n029: \\tvar success_page_qs = article.value(\\"success_page_url\\").split(\\"?\\")[1] || \\"\\";\\r\\n030: \\tif ( success_page_qs !== \\"\\" ){\\r\\n031: \\t\\tsuccess_page_qs = \\"?\\" + success_page_qs;\\r\\n032: \\t}\\r\\n033: \\t\\r\\n034: \\tvar siteKey = article.value(\\"recaptcha-publickey\\", \\"\\");\\r\\n035: \\tvar secretKey = article.value(\\"recaptcha-secretkey\\", \\"\\");\\r\\n036: \\tvar invisibleCaptcha = article.value(\\"recaptcha-invisible\\", \\"0\\");\\r\\n037: \\tvar captchaConfigError = \\"\\";\\r\\n038: \\tvar defaultFieldWidth = 300;\\r\\n039: \\tvar usesNewCaptcha = false;\\r\\n040: \\tvar email_template;\\r\\n041: \\tvar usesmtp = article.value(\\"smtp-useSmtp\\", \\"0\\");\\r\\n042: \\tif ( usesmtp == \\"1\\" ){\\r\\n043: \\t\\tusesmtp = \\"port: \\\\'\\" + article.value(\\"smtp-port\\",\\"587\\") + \\"' ssl: '\\" + article.value(\\"smtp-useSsl\\", \\"none\\") + \\"'\\";\\r\\n044: \\t}\\r\\n045: \\telse{\\r\\n046: \\t\\tusesmtp = \\"no\\";\\r\\n047: \\t}\\r\\n048: \\t\\r\\n049: \\t// display an error if Skript with new Captcha is chosen but no keys have been entered\\r\\n050: \\tif ( action_url.indexOf(\\"assets/php/formmailer/SendEmailReCaptcha.php\\") > -1 ){\\r\\n051: \\t\\tusesNewCaptcha = true;\\r\\n052: \\t\\t// verify that all keys are provided\\r\\n053: \\t\\tif ( siteKey == \\"\\" || secretKey == \\"\\" ){\\r\\n054: \\t\\t\\tcaptchaConfigError = \\"Unvollständige Formular-Konfiguration: Bitte geben Sie Ihre reCAPTCHA-Schlüssel in den Formulareinstellungen unter "Optionale reCAPTCHA-Sicherheitsprüfung" ein, oder wählen Sie in den Formular-Optionen ein anderes Skript.\\";\\r\\n055: \\t\\t\\tsystem.warn(\\"Bitte geben Sie auf der Seite \\\\"\\" + article.page.name + \\"\\\\" Ihre reCAPTCHA-Schlüssel in den Formulareinstellungen unter \\\\"Optionale reCAPTCHA-Sicherheitsprüfung\\\\" ein, oder wählen Sie in den Formular-Optionen ein anderes Skript.\\");\\r\\n056: \\t\\t}\\r\\n057: \\t\\t\\r\\n058: \\t\\t// allow only one form with new Captcha per Page\\r\\n059: \\t\\tvar pageArticles = page.articles;\\r\\n060: \\t\\tvar thisName = article.widgetName;\\r\\n061: \\t\\tvar formsWithCaptcha = [];\\r\\n062: \\t\\tfor ( var i=0; i < pageArticles.count; ++i ) {\\r\\n063: \\t\\t\\tvar currentArticle = pageArticles.item(i); \\r\\n064: \\t\\t\\tif ( currentArticle.widgetName == thisName && currentArticle.value(\\"action_url\\", \\"\\").indexOf(\\"assets/php/formmailer/SendEmailReCaptcha.php\\") > -1 ){\\r\\n065: \\t\\t\\t\\tformsWithCaptcha.push(currentArticle.id);\\r\\n066: \\t\\t\\t}\\r\\n067: \\t\\t}\\r\\n068: \\t\\tif ( formsWithCaptcha.length > 1 && formsWithCaptcha[0] !== article.id ){\\r\\n069: \\t\\t\\t// found multiple forms with new captcha \\r\\n070: \\t\\t\\tcaptchaConfigError = \\"Pro Seite ist nur ein Formular-Widget mit Skript \\\\"Via PHP mit Sicherheitsprüfung (NEU)\\\\" erlaubt! Löschen Sie überzählige Formulare oder fassen Sie die Formulare in einem zusammen.\\";\\r\\n071: \\t\\t\\t// log warning only once, for the first Article found\\r\\n072: \\t\\t\\tsystem.warn(\\"Pro Seite ist nur ein Formular-Widget mit Skript \\\\"Via PHP mit Sicherheitsprüfung (NEU)\\\\" erlaubt! Auf der Seite \\\\"\\" + article.page.name + \\"\\\\" sind mehrere solche Artikel enthalten. Löschen Sie überzählige Formulare oder fassen Sie die Formulare in einem zusammen.\\");\\r\\n073: \\t\\t}\\r\\n074: \\t}\\r\\n075: \\t\\r\\n076: \\tif( usesNewCaptcha && invisibleCaptcha == \\"1\\" ){\\r\\n077: \\t\\tvar captchaClass = \\" zpicaptcha\\";\\r\\n078: \\t}\\r\\n079: \\telse {\\r\\n080: \\t\\tvar captchaClass = \\"\\";\\r\\n081: \\t}\\r\\n082: \\t\\r\\n083: \\t// PHP Config file generation\\r\\n084: \\tfunction append( appendTo, appendix ) {\\r\\n085: \\t\\treturn appendTo + appendix + \\"\\r\\n\\";\\r\\n086: \\t}\\r\\n087: \\tfunction createFormConfig() {\\r\\n088: \\t\\tvar configFileName = article.id + \\"_config.inc.php\\";\\r\\n089: \\t\\tvar configFilePath = project.outputFolder + \\"assets\\\\php\\\\formmailer\\\\\\" + configFileName;\\r\\n090: \\t\\temail_template = article.valueExpanded(\\"email_template\\",\\"\\");\\r\\n091: \\t\\tif ( email_template == \\"\\" ){\\r\\n092: \\t\\t\\t// sane default for when project was converted and template field doesn\\'t exist yet, or user has accidentally emptied the field\\r\\n093: \\t\\t\\temail_template = \\'

Ein Formular wurde Ihnen von Ihrer Website gesendet

Jemand hat Ihnen ein Formular mit den folgenden Werten gesendet.

[FORM_TABLE]\\';\\r\\n094: \\t\\t}\\r\\n095: \\t\\t//email_template = email_template.toString().replace(/\\"/g, \\""\\"); \\r\\n096: \\t\\temail_template = email_template.toString().replace(/\\'/g, \\"\\\\\\'\\"); \\r\\n097: \\t\\t\\r\\n098: \\t\\tvar smtpPort = article.value(\\"smtp-port\\",\\"587\\") !== \\"\\" ? article.value(\\"smtp-port\\",\\"587\\") : \\"587\\";\\r\\n099: \\t\\tvar smtpUseSsl = article.value(\\"smtp-useSsl\\", \\"tls\\") !== \\"\\" ? article.value(\\"smtp-useSsl\\", \\"tls\\") : \\"tls\\";\\r\\n100: \\t\\t\\r\\n101: \\t\\tvar content = \\"\\";\\r\\n102: \\t\\tcontent = append( content, \\"\\");\\r\\n118: \\t\\t\\r\\n119: \\t\\t// Wegschreiben und intern in Publish-Queue hinzuügen.\\r\\n120: \\t\\tsystem.writeFile( configFilePath, content );\\r\\n121: \\t\\treturn;\\r\\n122: \\t}\\r\\n123: \\t\\r\\n124: \\tcreateFormConfig();\\t\\r\\n125: \\r\\n126: \\r\\n127: context.write(\\"\\r\\n\\r\\n\\");\\r\\n128: \\r\\n129: context.write( system.partial(\\"article-begin.html\\") );\\r\\n130: \\r\\n131: context.write(\\"\\r\\n\\t\\");\\r\\n132: \\r\\n133: if ( captchaConfigError ){ \\r\\n134: \\t\\t\\tif ( system.preview){ \\r\\n135: \\r\\n136: context.write(\\"\\r\\n\\t\\t\\t\\t\\");\\r\\n137: \\r\\n138: context.write( system.partial(\\"article-headline.html\\") );\\r\\n139: \\r\\n140: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\tFehler! \\r\\n\\t\\t\\t\\t\\t

\\r\\n\\t\\t\\t\\t\\t\\t\\");\\r\\n141: \\r\\n142: context.write( captchaConfigError );\\r\\n143: \\r\\n144: context.write(\\"\\r\\n\\t\\t\\t\\t\\t

\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\");\\r\\n145: \\r\\n146: \\t\\t}\\r\\n147: \\t\\t}\\r\\n148: \\t\\telse{ \\r\\n149: \\r\\n150: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n151: \\r\\n152: context.write( system.partial(\\"article-headline.html\\") );\\r\\n153: \\r\\n154: context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n155: \\r\\n156: if ( article.headline == \\"\\" && system.preview ) { \\r\\n157: \\t\\t\\t\\t// this adds a little spacer above the form if the form has no headline\\r\\n158: \\t\\t\\t\\t// in order to improve inline-editing mouse-overs over the article/fields…\\r\\n159: \\t\\t\\t\\r\\n160: \\r\\n161: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n162: \\r\\n163: } \\r\\n164: \\r\\n165: context.write(\\"\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\r\\n\\t\\t\\t\\t\\");\\r\\n218: \\r\\n219: \\r\\n220: \\t\\t\\t\\tfor ( var i = 1; i <= article.value(\\"element-count\\"); ++i ) { \\r\\n221: \\t\\t\\t\\t\\tvar cssClass = \\"\\";\\r\\n222: \\t\\t\\t\\t\\tif ( article.value(\\"element-isrequired-\\" + i) ) {\\r\\n223: \\t\\t\\t\\t\\t\\tcssClass += \\"required\\";\\r\\n224: \\t\\t\\t\\t\\t}\\r\\n225: \\t\\t\\t\\t\\tvar fieldID = article.valueRaw(\\"element-id-\\" + i); // valueRaw() is used to avoid funny numbers like 6.36083191220278E+17 instead of 636083191220278100 TODO: have Uwe look into why?\\r\\n226: \\t\\t\\t\\t\\t//var fieldData = system.jsonParse(article.valueRaw(\\"element-data-\\" + i));\\r\\n227: \\t\\t\\t\\t\\tvar jsonString = article.valueRaw(\\"element-data-\\" + i) || \\'{\\"cssClass\\":\\"c12\\",\\"newLine\\":true}\\';\\r\\n228: \\t\\t\\t\\t\\tvar fieldData = eval(\\'(\\' + jsonString + \\')\\');\\r\\n229: \\t\\t\\t\\t\\tif ( fieldData.newLine == false ){\\r\\n230: \\t\\t\\t\\t\\t\\tvar newlineCssClass = \\"\\";\\r\\n231: \\t\\t\\t\\t\\t}\\r\\n232: \\t\\t\\t\\t\\telse{\\r\\n233: \\t\\t\\t\\t\\t\\tvar newlineCssClass = \\" fieldinnewline\\"; \\t// the Default\\r\\n234: \\t\\t\\t\\t\\t}\\r\\n235: \\t\\t\\t\\t\\t//system.log(\\"FieldData: \\" + jsonString + \\" / cssClass: \\" + fieldData.cssClass);\\r\\n236: \\t\\t\\t\\t\\tif ( !article.valueRaw(\\"element-data-\\" + i) ){\\r\\n237: \\t\\t\\t\\t\\t\\t// converted project without new width settings honor the width set in the form widget\\r\\n238: \\t\\t\\t\\t\\t\\tvar fieldWidth = article.value(\\"element-width-\\" + i, 0);\\r\\n239: \\t\\t\\t\\t\\t\\tif ( fieldWidth !== 0 ) {\\r\\n240: \\t\\t\\t\\t\\t\\t\\tfieldWidth = \\"width: \\" + fieldWidth + \\"px; \\";\\r\\n241: \\t\\t\\t\\t\\t\\t\\t//fieldWidth = defaultFieldWidth;\\r\\n242: \\t\\t\\t\\t\\t\\t}\\r\\n243: \\t\\t\\t\\t\\t\\telse{\\r\\n244: \\t\\t\\t\\t\\t\\t\\tfieldWidth = \\"\\";\\r\\n245: \\t\\t\\t\\t\\t\\t}\\r\\n246: \\t\\t\\t\\t\\t}\\r\\n247: \\t\\t\\t\\t\\tvar elementAttributes = String(article.valueRaw(\\"element-attributes-\\" + i, \\"\\"));\\r\\n248: \\t\\t\\t\\t\\tvar cssInAttribute = \\"\\";\\r\\n249: \\t\\t\\t\\t\\tif ( elementAttributes.match(/style=\\\\"([^\\\\"]+)\\\\"/i) ) {\\r\\n250: \\t\\t\\t\\t\\t\\tcssInAttribute = elementAttributes.match(/style=\\\\"([^\\\\"]+)\\\\"/i)[1] || \\"\\";\\r\\n251: \\t\\t\\t\\t\\t}\\r\\n252: \\t\\t\\t\\t\\t \\r\\n253: \\r\\n254: context.write(\\"\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n267: \\r\\n268: \\r\\n269: \\t\\t\\t\\t\\t\\tif ( article.value(\\'element-type-\\' + i) == \\"radio\\" || \\r\\n270: \\t\\t\\t\\t\\t\\t article.value(\\'element-type-\\' + i) == \\"checkbox\\" || \\r\\n271: \\t\\t\\t\\t\\t\\t article.value(\\'element-type-\\' + i) == \\"file\\" \\r\\n272: \\t\\t\\t\\t\\t\\t){\\r\\n273: \\t\\t\\t\\t\\t\\t\\t// we need this, so in css we can set a nice bottom margin on the container of checkboxes or radios as we can\\'t set them on the form-field\\r\\n274: \\t\\t\\t\\t\\t\\t\\tvar extraclass=\\" zp\\" + article.value(\\'element-type-\\' + i);\\r\\n275: \\t\\t\\t\\t\\t\\t}\\r\\n276: \\t\\t\\t\\t\\t\\telse {\\r\\n277: \\t\\t\\t\\t\\t\\t\\tvar extraclass=\\"\\";\\r\\n278: \\t\\t\\t\\t\\t\\t}\\r\\n279: \\t\\t\\t\\t\\t\\r\\n280: \\r\\n281: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n282: \\r\\n283: if ( article.value(\\"element-type-\\" + i) !== \\"hidden\\"){ \\r\\n284: \\r\\n285: context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t>\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n329: \\r\\n330: \\r\\n331: \\t\\t\\t\\t\\t}\\r\\n332: \\t\\t\\t\\t\\t\\tswitch (article.value(\\"element-type-\\" + i)) {\\r\\n333: \\t\\t\\t\\t\\t\\t\\t// HTML Radio Buttons\\r\\n334: \\t\\t\\t\\t\\t\\t\\tcase \\"radio\\":\\r\\n335: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n336: \\r\\n337: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n346: \\r\\n347: \\r\\n348: \\t\\t\\t\\t\\t\\t\\tvar checkboxValues = article.valueRaw(\\"element-value-\\" + i).toString().split(\\";\\");\\r\\n349: \\t\\t\\t\\t\\t\\t\\tvar fieldDefault = article.valueRaw(\\"element-default-\\" + i);\\r\\n350: \\t\\t\\r\\n351: \\t\\t\\t\\t\\t\\t\\t\\tfor ( var ii = 0; ii < checkboxValues.length; ++ii ) {\\r\\n352: \\t\\t\\t\\t\\t\\t\\t\\t\\tif ( ii > 0 ) {\\r\\n353: \\t\\t\\t\\t\\t\\t\\t\\t\\t\\tcssClass = \\"\\"; //only print required class for first iteration of field \\r\\n354: \\t\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n355: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n356: \\r\\n357: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n401: \\r\\n402: if ( page.attribute(\\"form_item_break\\") == \\"1\\" ) { \\r\\n403: \\r\\n404: context.write(\\"
\\");\\r\\n405: \\r\\n406: } \\r\\n407: \\r\\n408: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n409: \\r\\n410: \\r\\n411: \\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n412: \\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n413: \\t\\t\\t\\t\\t\\t\\t// HTML Checkboxes \\r\\n414: \\t\\t\\t\\t\\t\\t\\tcase \\"checkbox\\":\\r\\n415: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n416: \\r\\n417: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n426: \\r\\n427: \\r\\n428: \\t\\t\\t\\t\\t\\t\\t\\tvar checkboxValues = article.valueRaw(\\"element-value-\\" + i).toString().split(\\";\\");\\r\\n429: \\t\\t\\t\\t\\t\\t\\t\\tvar fieldDefault = article.valueRaw(\\"element-default-\\" + i);\\r\\n430: \\t\\t\\t\\t\\t\\r\\n431: \\t\\t\\t\\t\\t\\t\\t\\tfor ( var ii = 0; ii < checkboxValues.length; ++ii ) {\\r\\n432: \\t\\t\\t\\t\\t\\t\\t\\t\\tif ( ii > 0 ) {\\r\\n433: \\t\\t\\t\\t\\t\\t\\t\\t\\t\\tcssClass = \\"\\"; //only print required class for first iteration of field \\r\\n434: \\t\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n435: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n436: \\r\\n437: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n481: \\r\\n482: if ( page.attribute(\\"form_item_break\\") == \\"1\\" ) { \\r\\n483: \\r\\n484: context.write(\\"
\\");\\r\\n485: \\r\\n486: } \\r\\n487: \\r\\n488: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n489: \\r\\n490: \\r\\n491: \\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n492: \\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n493: \\t\\t\\t\\t\\t\\t\\t// HTML Select List\\r\\n494: \\t\\t\\t\\t\\t\\t\\tcase \\"select\\":\\r\\n495: \\t\\t\\t\\t\\t\\t\\t\\tvar selectValues = article.valueRaw(\\"element-value-\\" + i).toString().split(\\";\\");\\r\\n496: \\t\\t\\t\\t\\t\\t\\t\\tvar fieldDefault = article.valueRaw(\\"element-default-\\" + i);\\r\\n497: \\t\\t\\t\\t\\t\\t\\t\\tvar selectSize = \\"1\\";\\r\\n498: \\t\\t\\t\\t\\t\\t\\t\\tvar selectSizeClass = \\"\\";\\r\\n499: \\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-height-\\" + i) > 1 ) {\\r\\n500: \\t\\t\\t\\t\\t\\t\\t\\t\\tselectSize = article.value(\\"element-height-\\" + i);\\r\\n501: \\t\\t\\t\\t\\t\\t\\t\\t\\tselectSizeClass = \\" zpmultilineselect\\";\\r\\n502: \\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n503: \\t\\t\\t\\t\\t\\t\\t\\tvar selectMultiple = \\"\\";\\r\\n504: \\t\\t\\t\\t\\t\\t\\t\\t\\r\\n505: \\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-ismultiline-\\" + i) ) {\\r\\n506: \\t\\t\\t\\t\\t\\t\\t\\t\\tselectMultiple = \\"multiple\\";\\r\\n507: \\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n508: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n509: \\r\\n510: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n574: \\r\\n575: \\r\\n576: \\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n577: \\t\\t\\t\\t\\t\\t\\t// HTML input Text Field which could be of a new HTML5 type (email|number|color|search etc. --> see defaults in ./widget.json)\\r\\n578: \\t\\t\\t\\t\\t\\t\\tcase \\"text\\":\\r\\n579: \\t\\t\\t\\t\\t\\t\\t\\tvar maxLength = \\"\\";\\r\\n580: \\t\\t\\t\\t\\t\\t\\t\\tvar elementType = \\"text\\";\\r\\n581: \\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-height-\\" + i) > 0 ) {\\r\\n582: \\t\\t\\t\\t\\t\\t\\t\\t\\tmaxLength = \\' maxlength=\\"\\' + article.value(\\"element-height-\\" + i) + \\'\\"\\';\\r\\n583: \\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n584: \\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-inputtype-\\" + i) ){\\r\\n585: \\t\\t\\t\\t\\t\\t\\t\\t\\telementType = article.value(\\"element-inputtype-\\" + i);\\r\\n586: \\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n587: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n588: \\r\\n589: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n637: \\r\\n638: \\r\\n639: \\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n640: \\t\\t\\t\\t\\t\\t\\t// HTML Text-Area\\r\\n641: \\t\\t\\t\\t\\t\\t\\tcase \\"textarea\\":\\r\\n642: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n643: \\r\\n644: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n688: \\r\\n689: \\r\\n690: \\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n691: \\t\\t\\t\\t\\t\\t\\t// Hidden Text Field - ZP-Type \\"Zusatztext\\"\\r\\n692: \\t\\t\\t\\t\\t\\t\\tcase \\"hidden\\":\\r\\n693: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n694: \\r\\n695: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n716: \\r\\n717: \\r\\n718: \\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n719: \\t\\t\\t\\t\\t\\t\\t// ZP-Type \\"Beschreibungstext\\"\\r\\n720: \\t\\t\\t\\t\\t\\t\\tcase \\"info\\":\\r\\n721: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n722: \\r\\n723: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n724: \\r\\n725: context.write( article.value(\\"element-value-\\" + i) );\\r\\n726: \\r\\n727: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n728: \\r\\n729: \\r\\n730: \\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n731: \\t\\t\\t\\t\\t\\t\\t// ZP-Type Separator Line\\r\\n732: \\t\\t\\t\\t\\t\\t\\tcase \\"separator\\":\\r\\n733: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n734: \\r\\n735: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t
 
\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n736: \\r\\n737: \\r\\n738: \\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n739: \\t\\t\\t\\t\\t\\t\\t// ZP File Upload\\r\\n740: \\t\\t\\t\\t\\t\\t\\tcase \\"file\\":\\r\\n741: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n742: \\r\\n743: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n768: \\r\\n769: \\t\\r\\n770: \\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n771: \\t\\t\\t\\t\\t\\t\\t// Default fallback HTML input with whatever element-type is passed\\r\\n772: \\t\\t\\t\\t\\t\\t\\tdefault:\\r\\n773: \\t\\t\\t\\t\\t\\t\\t\\t \\r\\n774: \\r\\n775: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n812: \\r\\n813: \\t\\r\\n814: \\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n815: \\t\\t\\t\\t\\t\\t} // switch\\r\\n816: \\t\\t\\t\\t\\t\\t\\r\\n817: \\r\\n818: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n819: \\r\\n820: if ( article.value(\\"element-type-\\" + i) !== \\"hidden\\"){ \\r\\n821: \\r\\n822: context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n823: \\r\\n824: } \\r\\n825: \\r\\n826: context.write(\\"\\r\\n\\t\\t\\t\\t\\");\\r\\n827: \\r\\n828: \\r\\n829: \\t\\t\\t\\t} // for\\r\\n830: \\t\\t\\t\\t\\r\\n831: \\r\\n832: context.write(\\" \\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\");\\r\\n833: \\r\\n834: if ( usesNewCaptcha && invisibleCaptcha == \\"0\\" ){ \\t\\r\\n835: \\t\\t\\t\\t\\t// show Captcha V2 \\r\\n836: \\r\\n837: context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n846: \\r\\n847: } else if ( usesNewCaptcha && invisibleCaptcha == \\"1\\" ){ \\t\\r\\n848: \\t\\t\\t\\t\\t// show new Captcha invisible \\r\\n849: \\r\\n850: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\");\\r\\n855: \\r\\n856: } else {\\t\\r\\n857: \\t\\t\\t\\t\\t// show old Captcha because the user selected the corresponding form action ends in \\"SendEmail.php\\" and not \\"?sc\\"\\r\\n858: \\t\\t\\t\\t\\tvar scriptName = \\"SendEmail.php\\";\\r\\n859: \\t\\t\\t\\t\\tif ( action_url.substring(action_url.length - scriptName.length, action_url.length) == scriptName ) { \\r\\n860: \\t\\t\\t\\t\\t\\t\\r\\n861: \\r\\n862: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t\\");\\r\\n867: \\r\\n868: \\r\\n869: \\t\\t\\t\\t\\t}\\r\\n870: \\t\\t\\t\\t} \\r\\n871: \\r\\n872: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n873: \\r\\n874: if ( usesNewCaptcha && invisibleCaptcha == \\"1\\" ){ \\t\\r\\n875: \\t\\t\\t\\t\\t// show new Captcha invisible \\r\\n876: \\r\\n877: context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n882: \\r\\n883: } \\r\\n884: \\r\\n885: context.write(\\"\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\");\\r\\n886: \\r\\n887: if ( \\"false\\" == \\"true\\" ) { \\r\\n888: \\r\\n889: context.write(\\"\\");\\r\\n890: \\r\\n891: } \\r\\n892: \\r\\n893: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\");\\r\\n898: \\r\\n899: } \\r\\n900: \\r\\n901: context.write(\\"\\r\\n\\");\\r\\n902: \\r\\n903: context.write( system.partial(\\"article-end.html\\") );\\r\\n904: \\r\\n905: context.write(\\"\\r\\n\\");\\r\\n906: // End source file: \\'C:\\Users\\Michael\\AppData\\Local\\Zeta Producer 14\\packaging\\widgets\\formular\\standard.html\\'.\\r\\n907: };\\r\\n908: \\r\\n909: /* Shortcuts. */\\r\\n910: article = context.article;\\r\\n911: page = context.page;\\r\\n912: projectFolder = context.projectFolder;\\r\\n913: project = context.project;\\r\\n914: system = context.system;\\r\\n915: \\r\\n916: \\r\\n917: new SE636875075122339248().executeScript();", CompleteSourceLines=String[] { Length=917, LongLength=917, Rank=1, , IsReadOnly=False, IsFixedSize=True, IsSynchronized=False "001: function SE636875075122339248() {}", "002: ", "003: ", "004: SE636875075122339248.prototype.executeScript = function(){", "005: // Start source file: \\'C:\\Users\\Michael\\AppData\\Local\\Zeta Producer 14\\packaging\\widgets\\formular\\standard.html\\'.", "006: ", "007: ", "008: \\tvar zpformversion = \\"zp14\\";", "009: \\tif ( article.value(\\"zpform-version\\", \\"14\\") !== \\"\\" ){", "010: \\t\\tzpformversion = \\"zp\\" + article.value(\\"zpform-version\\", \\"14\\");", "011: \\t}", "012: \\t", "013: \\tvar action_url = article.value(\\"action_url\\", \\"\\");", "014: \\tif ( action_url.indexOf(\\"http\\") !== 0 ){", "015: \\t\\t// action_url does not start with \\"http\\" and is thus absolute, so we need the pathToRoot", "016: \\t\\taction_url = page.pathToRoot + action_url;", "017: \\t}", "018: \\t", "019: \\tvar email_address = article.value(\\"email_address\\", \\"\\");", "020: \\temail_address = email_address.replace(/ /g,\\"\\"); \\t// remove blanks in email-address", "021: \\temail_address = system.encrypt(email_address);\\t\\t// encrypt email-address for anti spam measures", "022: \\tvar email_subject = article.value(\\"email_subject\\", \\"\\");", "023: \\tvar error_page_url = ( isNull(project.getPage(article.value(\\"error_page_url\\").split(\\"?\\")[0])) ) ? page.absoluteUrl : project.getPage(article.value(\\"error_page_url\\").split(\\"?\\")[0]).absoluteUrl;", "024: \\tvar error_page_qs = article.value(\\"error_page_url\\").split(\\"?\\")[1] || \\"\\";", "025: \\tif ( error_page_qs !== \\"\\" ){", "026: \\t\\terror_page_qs = \\"?\\" + error_page_qs;", "027: \\t}", "028: \\tvar success_page_url = ( isNull(project.getPage(article.value(\\"success_page_url\\").split(\\"?\\")[0])) ) ? page.absoluteUrl : project.getPage(article.value(\\"success_page_url\\").split(\\"?\\")[0]).absoluteUrl;", "029: \\tvar success_page_qs = article.value(\\"success_page_url\\").split(\\"?\\")[1] || \\"\\";", "030: \\tif ( success_page_qs !== \\"\\" ){", "031: \\t\\tsuccess_page_qs = \\"?\\" + success_page_qs;", "032: \\t}", "033: \\t", "034: \\tvar siteKey = article.value(\\"recaptcha-publickey\\", \\"\\");", "035: \\tvar secretKey = article.value(\\"recaptcha-secretkey\\", \\"\\");", "036: \\tvar invisibleCaptcha = article.value(\\"recaptcha-invisible\\", \\"0\\");", "037: \\tvar captchaConfigError = \\"\\";", "038: \\tvar defaultFieldWidth = 300;", "039: \\tvar usesNewCaptcha = false;", "040: \\tvar email_template;", "041: \\tvar usesmtp = article.value(\\"smtp-useSmtp\\", \\"0\\");", "042: \\tif ( usesmtp == \\"1\\" ){", "043: \\t\\tusesmtp = \\"port: \\\\'\\" + article.value(\\"smtp-port\\",\\"587\\") + \\"' ssl: '\\" + article.value(\\"smtp-useSsl\\", \\"none\\") + \\"'\\";", "044: \\t}", "045: \\telse{", "046: \\t\\tusesmtp = \\"no\\";", "047: \\t}", "048: \\t", "049: \\t// display an error if Skript with new Captcha is chosen but no keys have been entered", "050: \\tif ( action_url.indexOf(\\"assets/php/formmailer/SendEmailReCaptcha.php\\") > -1 ){", "051: \\t\\tusesNewCaptcha = true;", "052: \\t\\t// verify that all keys are provided", "053: \\t\\tif ( siteKey == \\"\\" || secretKey == \\"\\" ){", "054: \\t\\t\\tcaptchaConfigError = \\"Unvollständige Formular-Konfiguration: Bitte geben Sie Ihre reCAPTCHA-Schlüssel in den Formulareinstellungen unter "Optionale reCAPTCHA-Sicherheitsprüfung" ein, oder wählen Sie in den Formular-Optionen ein anderes Skript.\\";", "055: \\t\\t\\tsystem.warn(\\"Bitte geben Sie auf der Seite \\\\"\\" + article.page.name + \\"\\\\" Ihre reCAPTCHA-Schlüssel in den Formulareinstellungen unter \\\\"Optionale reCAPTCHA-Sicherheitsprüfung\\\\" ein, oder wählen Sie in den Formular-Optionen ein anderes Skript.\\");", "056: \\t\\t}", "057: \\t\\t", "058: \\t\\t// allow only one form with new Captcha per Page", "059: \\t\\tvar pageArticles = page.articles;", "060: \\t\\tvar thisName = article.widgetName;", "061: \\t\\tvar formsWithCaptcha = [];", "062: \\t\\tfor ( var i=0; i < pageArticles.count; ++i ) {", "063: \\t\\t\\tvar currentArticle = pageArticles.item(i); ", "064: \\t\\t\\tif ( currentArticle.widgetName == thisName && currentArticle.value(\\"action_url\\", \\"\\").indexOf(\\"assets/php/formmailer/SendEmailReCaptcha.php\\") > -1 ){", "065: \\t\\t\\t\\tformsWithCaptcha.push(currentArticle.id);", "066: \\t\\t\\t}", "067: \\t\\t}", "068: \\t\\tif ( formsWithCaptcha.length > 1 && formsWithCaptcha[0] !== article.id ){", "069: \\t\\t\\t// found multiple forms with new captcha ", "070: \\t\\t\\tcaptchaConfigError = \\"Pro Seite ist nur ein Formular-Widget mit Skript \\\\"Via PHP mit Sicherheitsprüfung (NEU)\\\\" erlaubt! Löschen Sie überzählige Formulare oder fassen Sie die Formulare in einem zusammen.\\";", "071: \\t\\t\\t// log warning only once, for the first Article found", "072: \\t\\t\\tsystem.warn(\\"Pro Seite ist nur ein Formular-Widget mit Skript \\\\"Via PHP mit Sicherheitsprüfung (NEU)\\\\" erlaubt! Auf der Seite \\\\"\\" + article.page.name + \\"\\\\" sind mehrere solche Artikel enthalten. Löschen Sie überzählige Formulare oder fassen Sie die Formulare in einem zusammen.\\");", "073: \\t\\t}", "074: \\t}", "075: \\t", "076: \\tif( usesNewCaptcha && invisibleCaptcha == \\"1\\" ){", "077: \\t\\tvar captchaClass = \\" zpicaptcha\\";", "078: \\t}", "079: \\telse {", "080: \\t\\tvar captchaClass = \\"\\";", "081: \\t}", "082: \\t", "083: \\t// PHP Config file generation", "084: \\tfunction append( appendTo, appendix ) {", "085: \\t\\treturn appendTo + appendix + \\"\\r\\n\\";", "086: \\t}", "087: \\tfunction createFormConfig() {", "088: \\t\\tvar configFileName = article.id + \\"_config.inc.php\\";", "089: \\t\\tvar configFilePath = project.outputFolder + \\"assets\\\\php\\\\formmailer\\\\\\" + configFileName;", "090: \\t\\temail_template = article.valueExpanded(\\"email_template\\",\\"\\");", "091: \\t\\tif ( email_template == \\"\\" ){", "092: \\t\\t\\t// sane default for when project was converted and template field doesn\\'t exist yet, or user has accidentally emptied the field", "093: \\t\\t\\temail_template = \\'

Ein Formular wurde Ihnen von Ihrer Website gesendet

Jemand hat Ihnen ein Formular mit den folgenden Werten gesendet.

[FORM_TABLE]\\';", "094: \\t\\t}", "095: \\t\\t//email_template = email_template.toString().replace(/\\"/g, \\""\\"); ", "096: \\t\\temail_template = email_template.toString().replace(/\\'/g, \\"\\\\\\'\\"); ", "097: \\t\\t", "098: \\t\\tvar smtpPort = article.value(\\"smtp-port\\",\\"587\\") !== \\"\\" ? article.value(\\"smtp-port\\",\\"587\\") : \\"587\\";", "099: \\t\\tvar smtpUseSsl = article.value(\\"smtp-useSsl\\", \\"tls\\") !== \\"\\" ? article.value(\\"smtp-useSsl\\", \\"tls\\") : \\"tls\\";", "100: \\t\\t", "101: \\t\\tvar content = \\"\\";", "102: \\t\\tcontent = append( content, \\"\\");", "118: \\t\\t", "119: \\t\\t// Wegschreiben und intern in Publish-Queue hinzuügen.", "120: \\t\\tsystem.writeFile( configFilePath, content );", "121: \\t\\treturn;", "122: \\t}", "123: \\t", "124: \\tcreateFormConfig();\\t", "125: ", "126: ", "127: context.write(\\"\\r\\n\\r\\n\\");", "128: ", "129: context.write( system.partial(\\"article-begin.html\\") );", "130: ", "131: context.write(\\"\\r\\n\\t\\");", "132: ", "133: if ( captchaConfigError ){ ", "134: \\t\\t\\tif ( system.preview){ ", "135: ", "136: context.write(\\"\\r\\n\\t\\t\\t\\t\\");", "137: ", "138: context.write( system.partial(\\"article-headline.html\\") );", "139: ", "140: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\tFehler! \\r\\n\\t\\t\\t\\t\\t

\\r\\n\\t\\t\\t\\t\\t\\t\\");", "141: ", "142: context.write( captchaConfigError );", "143: ", "144: context.write(\\"\\r\\n\\t\\t\\t\\t\\t

\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\");", "145: ", "146: \\t\\t}", "147: \\t\\t}", "148: \\t\\telse{ ", "149: ", "150: context.write(\\"\\r\\n\\t\\t\\t\\");", "151: ", "152: context.write( system.partial(\\"article-headline.html\\") );", "153: ", "154: context.write(\\"\\r\\n\\t\\t\\t\\");", "155: ", "156: if ( article.headline == \\"\\" && system.preview ) { ", "157: \\t\\t\\t\\t// this adds a little spacer above the form if the form has no headline", "158: \\t\\t\\t\\t// in order to improve inline-editing mouse-overs over the article/fields…", "159: \\t\\t\\t", "160: ", "161: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");", "162: ", "163: } ", "164: ", "165: context.write(\\"\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\r\\n\\t\\t\\t\\t\\");", "218: ", "219: ", "220: \\t\\t\\t\\tfor ( var i = 1; i <= article.value(\\"element-count\\"); ++i ) { ", "221: \\t\\t\\t\\t\\tvar cssClass = \\"\\";", "222: \\t\\t\\t\\t\\tif ( article.value(\\"element-isrequired-\\" + i) ) {", "223: \\t\\t\\t\\t\\t\\tcssClass += \\"required\\";", "224: \\t\\t\\t\\t\\t}", "225: \\t\\t\\t\\t\\tvar fieldID = article.valueRaw(\\"element-id-\\" + i); // valueRaw() is used to avoid funny numbers like 6.36083191220278E+17 instead of 636083191220278100 TODO: have Uwe look into why?", "226: \\t\\t\\t\\t\\t//var fieldData = system.jsonParse(article.valueRaw(\\"element-data-\\" + i));", "227: \\t\\t\\t\\t\\tvar jsonString = article.valueRaw(\\"element-data-\\" + i) || \\'{\\"cssClass\\":\\"c12\\",\\"newLine\\":true}\\';", "228: \\t\\t\\t\\t\\tvar fieldData = eval(\\'(\\' + jsonString + \\')\\');", "229: \\t\\t\\t\\t\\tif ( fieldData.newLine == false ){", "230: \\t\\t\\t\\t\\t\\tvar newlineCssClass = \\"\\";", "231: \\t\\t\\t\\t\\t}", "232: \\t\\t\\t\\t\\telse{", "233: \\t\\t\\t\\t\\t\\tvar newlineCssClass = \\" fieldinnewline\\"; \\t// the Default", "234: \\t\\t\\t\\t\\t}", "235: \\t\\t\\t\\t\\t//system.log(\\"FieldData: \\" + jsonString + \\" / cssClass: \\" + fieldData.cssClass);", "236: \\t\\t\\t\\t\\tif ( !article.valueRaw(\\"element-data-\\" + i) ){", "237: \\t\\t\\t\\t\\t\\t// converted project without new width settings honor the width set in the form widget", "238: \\t\\t\\t\\t\\t\\tvar fieldWidth = article.value(\\"element-width-\\" + i, 0);", "239: \\t\\t\\t\\t\\t\\tif ( fieldWidth !== 0 ) {", "240: \\t\\t\\t\\t\\t\\t\\tfieldWidth = \\"width: \\" + fieldWidth + \\"px; \\";", "241: \\t\\t\\t\\t\\t\\t\\t//fieldWidth = defaultFieldWidth;", "242: \\t\\t\\t\\t\\t\\t}", "243: \\t\\t\\t\\t\\t\\telse{", "244: \\t\\t\\t\\t\\t\\t\\tfieldWidth = \\"\\";", "245: \\t\\t\\t\\t\\t\\t}", "246: \\t\\t\\t\\t\\t}", "247: \\t\\t\\t\\t\\tvar elementAttributes = String(article.valueRaw(\\"element-attributes-\\" + i, \\"\\"));", "248: \\t\\t\\t\\t\\tvar cssInAttribute = \\"\\";", "249: \\t\\t\\t\\t\\tif ( elementAttributes.match(/style=\\\\"([^\\\\"]+)\\\\"/i) ) {", "250: \\t\\t\\t\\t\\t\\tcssInAttribute = elementAttributes.match(/style=\\\\"([^\\\\"]+)\\\\"/i)[1] || \\"\\";", "251: \\t\\t\\t\\t\\t}", "252: \\t\\t\\t\\t\\t ", "253: ", "254: context.write(\\"\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\");", "267: ", "268: ", "269: \\t\\t\\t\\t\\t\\tif ( article.value(\\'element-type-\\' + i) == \\"radio\\" || ", "270: \\t\\t\\t\\t\\t\\t article.value(\\'element-type-\\' + i) == \\"checkbox\\" || ", "271: \\t\\t\\t\\t\\t\\t article.value(\\'element-type-\\' + i) == \\"file\\" ", "272: \\t\\t\\t\\t\\t\\t){", "273: \\t\\t\\t\\t\\t\\t\\t// we need this, so in css we can set a nice bottom margin on the container of checkboxes or radios as we can\\'t set them on the form-field", "274: \\t\\t\\t\\t\\t\\t\\tvar extraclass=\\" zp\\" + article.value(\\'element-type-\\' + i);", "275: \\t\\t\\t\\t\\t\\t}", "276: \\t\\t\\t\\t\\t\\telse {", "277: \\t\\t\\t\\t\\t\\t\\tvar extraclass=\\"\\";", "278: \\t\\t\\t\\t\\t\\t}", "279: \\t\\t\\t\\t\\t", "280: ", "281: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\");", "282: ", "283: if ( article.value(\\"element-type-\\" + i) !== \\"hidden\\"){ ", "284: ", "285: context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t>\\r\\n\\t\\t\\t\\t\\t\\");", "329: ", "330: ", "331: \\t\\t\\t\\t\\t}", "332: \\t\\t\\t\\t\\t\\tswitch (article.value(\\"element-type-\\" + i)) {", "333: \\t\\t\\t\\t\\t\\t\\t// HTML Radio Buttons", "334: \\t\\t\\t\\t\\t\\t\\tcase \\"radio\\":", "335: \\t\\t\\t\\t\\t\\t\\t\\t ", "336: ", "337: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");", "346: ", "347: ", "348: \\t\\t\\t\\t\\t\\t\\tvar checkboxValues = article.valueRaw(\\"element-value-\\" + i).toString().split(\\";\\");", "349: \\t\\t\\t\\t\\t\\t\\tvar fieldDefault = article.valueRaw(\\"element-default-\\" + i);", "350: \\t\\t", "351: \\t\\t\\t\\t\\t\\t\\t\\tfor ( var ii = 0; ii < checkboxValues.length; ++ii ) {", "352: \\t\\t\\t\\t\\t\\t\\t\\t\\tif ( ii > 0 ) {", "353: \\t\\t\\t\\t\\t\\t\\t\\t\\t\\tcssClass = \\"\\"; //only print required class for first iteration of field ", "354: \\t\\t\\t\\t\\t\\t\\t\\t\\t}", "355: \\t\\t\\t\\t\\t\\t\\t\\t ", "356: ", "357: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\");", "401: ", "402: if ( page.attribute(\\"form_item_break\\") == \\"1\\" ) { ", "403: ", "404: context.write(\\"
\\");", "405: ", "406: } ", "407: ", "408: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");", "409: ", "410: ", "411: \\t\\t\\t\\t\\t\\t\\t\\t}", "412: \\t\\t\\t\\t\\t\\t\\t\\tbreak;", "413: \\t\\t\\t\\t\\t\\t\\t// HTML Checkboxes ", "414: \\t\\t\\t\\t\\t\\t\\tcase \\"checkbox\\":", "415: \\t\\t\\t\\t\\t\\t\\t\\t ", "416: ", "417: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");", "426: ", "427: ", "428: \\t\\t\\t\\t\\t\\t\\t\\tvar checkboxValues = article.valueRaw(\\"element-value-\\" + i).toString().split(\\";\\");", "429: \\t\\t\\t\\t\\t\\t\\t\\tvar fieldDefault = article.valueRaw(\\"element-default-\\" + i);", "430: \\t\\t\\t\\t\\t", "431: \\t\\t\\t\\t\\t\\t\\t\\tfor ( var ii = 0; ii < checkboxValues.length; ++ii ) {", "432: \\t\\t\\t\\t\\t\\t\\t\\t\\tif ( ii > 0 ) {", "433: \\t\\t\\t\\t\\t\\t\\t\\t\\t\\tcssClass = \\"\\"; //only print required class for first iteration of field ", "434: \\t\\t\\t\\t\\t\\t\\t\\t\\t}", "435: \\t\\t\\t\\t\\t\\t\\t\\t ", "436: ", "437: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\");", "481: ", "482: if ( page.attribute(\\"form_item_break\\") == \\"1\\" ) { ", "483: ", "484: context.write(\\"
\\");", "485: ", "486: } ", "487: ", "488: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");", "489: ", "490: ", "491: \\t\\t\\t\\t\\t\\t\\t\\t}", "492: \\t\\t\\t\\t\\t\\t\\t\\tbreak;", "493: \\t\\t\\t\\t\\t\\t\\t// HTML Select List", "494: \\t\\t\\t\\t\\t\\t\\tcase \\"select\\":", "495: \\t\\t\\t\\t\\t\\t\\t\\tvar selectValues = article.valueRaw(\\"element-value-\\" + i).toString().split(\\";\\");", "496: \\t\\t\\t\\t\\t\\t\\t\\tvar fieldDefault = article.valueRaw(\\"element-default-\\" + i);", "497: \\t\\t\\t\\t\\t\\t\\t\\tvar selectSize = \\"1\\";", "498: \\t\\t\\t\\t\\t\\t\\t\\tvar selectSizeClass = \\"\\";", "499: \\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-height-\\" + i) > 1 ) {", "500: \\t\\t\\t\\t\\t\\t\\t\\t\\tselectSize = article.value(\\"element-height-\\" + i);", "501: \\t\\t\\t\\t\\t\\t\\t\\t\\tselectSizeClass = \\" zpmultilineselect\\";", "502: \\t\\t\\t\\t\\t\\t\\t\\t}", "503: \\t\\t\\t\\t\\t\\t\\t\\tvar selectMultiple = \\"\\";", "504: \\t\\t\\t\\t\\t\\t\\t\\t", "505: \\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-ismultiline-\\" + i) ) {", "506: \\t\\t\\t\\t\\t\\t\\t\\t\\tselectMultiple = \\"multiple\\";", "507: \\t\\t\\t\\t\\t\\t\\t\\t}", "508: \\t\\t\\t\\t\\t\\t\\t\\t ", "509: ", "510: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");", "574: ", "575: ", "576: \\t\\t\\t\\t\\t\\t\\t\\tbreak;", "577: \\t\\t\\t\\t\\t\\t\\t// HTML input Text Field which could be of a new HTML5 type (email|number|color|search etc. --> see defaults in ./widget.json)", "578: \\t\\t\\t\\t\\t\\t\\tcase \\"text\\":", "579: \\t\\t\\t\\t\\t\\t\\t\\tvar maxLength = \\"\\";", "580: \\t\\t\\t\\t\\t\\t\\t\\tvar elementType = \\"text\\";", "581: \\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-height-\\" + i) > 0 ) {", "582: \\t\\t\\t\\t\\t\\t\\t\\t\\tmaxLength = \\' maxlength=\\"\\' + article.value(\\"element-height-\\" + i) + \\'\\"\\';", "583: \\t\\t\\t\\t\\t\\t\\t\\t}", "584: \\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-inputtype-\\" + i) ){", "585: \\t\\t\\t\\t\\t\\t\\t\\t\\telementType = article.value(\\"element-inputtype-\\" + i);", "586: \\t\\t\\t\\t\\t\\t\\t\\t}", "587: \\t\\t\\t\\t\\t\\t\\t\\t ", "588: ", "589: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");", "637: ", "638: ", "639: \\t\\t\\t\\t\\t\\t\\t\\tbreak;", "640: \\t\\t\\t\\t\\t\\t\\t// HTML Text-Area", "641: \\t\\t\\t\\t\\t\\t\\tcase \\"textarea\\":", "642: \\t\\t\\t\\t\\t\\t\\t\\t ", "643: ", "644: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");", "688: ", "689: ", "690: \\t\\t\\t\\t\\t\\t\\t\\tbreak;", "691: \\t\\t\\t\\t\\t\\t\\t// Hidden Text Field - ZP-Type \\"Zusatztext\\"", "692: \\t\\t\\t\\t\\t\\t\\tcase \\"hidden\\":", "693: \\t\\t\\t\\t\\t\\t\\t\\t ", "694: ", "695: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");", "716: ", "717: ", "718: \\t\\t\\t\\t\\t\\t\\t\\tbreak;", "719: \\t\\t\\t\\t\\t\\t\\t// ZP-Type \\"Beschreibungstext\\"", "720: \\t\\t\\t\\t\\t\\t\\tcase \\"info\\":", "721: \\t\\t\\t\\t\\t\\t\\t\\t ", "722: ", "723: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");", "724: ", "725: context.write( article.value(\\"element-value-\\" + i) );", "726: ", "727: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");", "728: ", "729: ", "730: \\t\\t\\t\\t\\t\\t\\t\\tbreak;", "731: \\t\\t\\t\\t\\t\\t\\t// ZP-Type Separator Line", "732: \\t\\t\\t\\t\\t\\t\\tcase \\"separator\\":", "733: \\t\\t\\t\\t\\t\\t\\t\\t ", "734: ", "735: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t
 
\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");", "736: ", "737: ", "738: \\t\\t\\t\\t\\t\\t\\t\\tbreak;", "739: \\t\\t\\t\\t\\t\\t\\t// ZP File Upload", "740: \\t\\t\\t\\t\\t\\t\\tcase \\"file\\":", "741: \\t\\t\\t\\t\\t\\t\\t\\t ", "742: ", "743: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");", "768: ", "769: \\t", "770: \\t\\t\\t\\t\\t\\t\\t\\tbreak;", "771: \\t\\t\\t\\t\\t\\t\\t// Default fallback HTML input with whatever element-type is passed", "772: \\t\\t\\t\\t\\t\\t\\tdefault:", "773: \\t\\t\\t\\t\\t\\t\\t\\t ", "774: ", "775: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");", "812: ", "813: \\t", "814: \\t\\t\\t\\t\\t\\t\\t\\tbreak;", "815: \\t\\t\\t\\t\\t\\t} // switch", "816: \\t\\t\\t\\t\\t\\t", "817: ", "818: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\");", "819: ", "820: if ( article.value(\\"element-type-\\" + i) !== \\"hidden\\"){ ", "821: ", "822: context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");", "823: ", "824: } ", "825: ", "826: context.write(\\"\\r\\n\\t\\t\\t\\t\\");", "827: ", "828: ", "829: \\t\\t\\t\\t} // for", "830: \\t\\t\\t\\t", "831: ", "832: context.write(\\" \\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\");", "833: ", "834: if ( usesNewCaptcha && invisibleCaptcha == \\"0\\" ){ \\t", "835: \\t\\t\\t\\t\\t// show Captcha V2 ", "836: ", "837: context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");", "846: ", "847: } else if ( usesNewCaptcha && invisibleCaptcha == \\"1\\" ){ \\t", "848: \\t\\t\\t\\t\\t// show new Captcha invisible ", "849: ", "850: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\");", "855: ", "856: } else {\\t", "857: \\t\\t\\t\\t\\t// show old Captcha because the user selected the corresponding form action ends in \\"SendEmail.php\\" and not \\"?sc\\"", "858: \\t\\t\\t\\t\\tvar scriptName = \\"SendEmail.php\\";", "859: \\t\\t\\t\\t\\tif ( action_url.substring(action_url.length - scriptName.length, action_url.length) == scriptName ) { ", "860: \\t\\t\\t\\t\\t\\t", "861: ", "862: context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t\\");", "867: ", "868: ", "869: \\t\\t\\t\\t\\t}", "870: \\t\\t\\t\\t} ", "871: ", "872: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");", "873: ", "874: if ( usesNewCaptcha && invisibleCaptcha == \\"1\\" ){ \\t", "875: \\t\\t\\t\\t\\t// show new Captcha invisible ", "876: ", "877: context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");", "882: ", "883: } ", "884: ", "885: context.write(\\"\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\");", "886: ", "887: if ( \\"false\\" == \\"true\\" ) { ", "888: ", "889: context.write(\\"\\");", "890: ", "891: } ", "892: ", "893: context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\");", "898: ", "899: } ", "900: ", "901: context.write(\\"\\r\\n\\");", "902: ", "903: context.write( system.partial(\\"article-end.html\\") );", "904: ", "905: context.write(\\"\\r\\n\\");", "906: // End source file: \\'C:\\Users\\Michael\\AppData\\Local\\Zeta Producer 14\\packaging\\widgets\\formular\\standard.html\\'.", "907: };", "908: ", "909: /* Shortcuts. */", "910: article = context.article;", "911: page = context.page;", "912: projectFolder = context.projectFolder;", "913: project = context.project;", "914: system = context.system;", "915: ", "916: ", "917: new SE636875075122339248().executeScript();" }, LineNumber=119, ColumnNumber=2, SourceLine="\\t\\tsystem.writeFile( configFilePath, content );", Description="Der Suchschlüssel wurde in keinem Datensatz gefunden.", SourceFilePath="C:\\Users\\Michael\\AppData\\Local\\Zeta Producer 14\\packaging\\widgets\\formular\\standard.html", WasCanceled=False, Message="Der Suchschlüssel wurde in keinem Datensatz gefunden.", Data= [ ] , InnerException=SlimScriptEngineException { ExcepInfo=EXCEPINFO { }, Description="Der Suchschlüssel wurde in keinem Datensatz gefunden.", LineNumber=119, ColumnNumber=2, SourceLine="\\t\\tsystem.writeFile( configFilePath, content );", FullSourceCode="function SE636875075122339248() {}\\r\\n\\r\\n\\r\\nSE636875075122339248.prototype.executeScript = function(){\\r\\n// Start source file: \\'C:\\Users\\Michael\\AppData\\Local\\Zeta Producer 14\\packaging\\widgets\\formular\\standard.html\\'.\\r\\n\\r\\n\\r\\n\\tvar zpformversion = \\"zp14\\";\\r\\n\\tif ( article.value(\\"zpform-version\\", \\"14\\") !== \\"\\" ){\\r\\n\\t\\tzpformversion = \\"zp\\" + article.value(\\"zpform-version\\", \\"14\\");\\r\\n\\t}\\r\\n\\t\\r\\n\\tvar action_url = article.value(\\"action_url\\", \\"\\");\\r\\n\\tif ( action_url.indexOf(\\"http\\") !== 0 ){\\r\\n\\t\\t// action_url does not start with \\"http\\" and is thus absolute, so we need the pathToRoot\\r\\n\\t\\taction_url = page.pathToRoot + action_url;\\r\\n\\t}\\r\\n\\t\\r\\n\\tvar email_address = article.value(\\"email_address\\", \\"\\");\\r\\n\\temail_address = email_address.replace(/ /g,\\"\\"); \\t// remove blanks in email-address\\r\\n\\temail_address = system.encrypt(email_address);\\t\\t// encrypt email-address for anti spam measures\\r\\n\\tvar email_subject = article.value(\\"email_subject\\", \\"\\");\\r\\n\\tvar error_page_url = ( isNull(project.getPage(article.value(\\"error_page_url\\").split(\\"?\\")[0])) ) ? page.absoluteUrl : project.getPage(article.value(\\"error_page_url\\").split(\\"?\\")[0]).absoluteUrl;\\r\\n\\tvar error_page_qs = article.value(\\"error_page_url\\").split(\\"?\\")[1] || \\"\\";\\r\\n\\tif ( error_page_qs !== \\"\\" ){\\r\\n\\t\\terror_page_qs = \\"?\\" + error_page_qs;\\r\\n\\t}\\r\\n\\tvar success_page_url = ( isNull(project.getPage(article.value(\\"success_page_url\\").split(\\"?\\")[0])) ) ? page.absoluteUrl : project.getPage(article.value(\\"success_page_url\\").split(\\"?\\")[0]).absoluteUrl;\\r\\n\\tvar success_page_qs = article.value(\\"success_page_url\\").split(\\"?\\")[1] || \\"\\";\\r\\n\\tif ( success_page_qs !== \\"\\" ){\\r\\n\\t\\tsuccess_page_qs = \\"?\\" + success_page_qs;\\r\\n\\t}\\r\\n\\t\\r\\n\\tvar siteKey = article.value(\\"recaptcha-publickey\\", \\"\\");\\r\\n\\tvar secretKey = article.value(\\"recaptcha-secretkey\\", \\"\\");\\r\\n\\tvar invisibleCaptcha = article.value(\\"recaptcha-invisible\\", \\"0\\");\\r\\n\\tvar captchaConfigError = \\"\\";\\r\\n\\tvar defaultFieldWidth = 300;\\r\\n\\tvar usesNewCaptcha = false;\\r\\n\\tvar email_template;\\r\\n\\tvar usesmtp = article.value(\\"smtp-useSmtp\\", \\"0\\");\\r\\n\\tif ( usesmtp == \\"1\\" ){\\r\\n\\t\\tusesmtp = \\"port: \\\\'\\" + article.value(\\"smtp-port\\",\\"587\\") + \\"' ssl: '\\" + article.value(\\"smtp-useSsl\\", \\"none\\") + \\"'\\";\\r\\n\\t}\\r\\n\\telse{\\r\\n\\t\\tusesmtp = \\"no\\";\\r\\n\\t}\\r\\n\\t\\r\\n\\t// display an error if Skript with new Captcha is chosen but no keys have been entered\\r\\n\\tif ( action_url.indexOf(\\"assets/php/formmailer/SendEmailReCaptcha.php\\") > -1 ){\\r\\n\\t\\tusesNewCaptcha = true;\\r\\n\\t\\t// verify that all keys are provided\\r\\n\\t\\tif ( siteKey == \\"\\" || secretKey == \\"\\" ){\\r\\n\\t\\t\\tcaptchaConfigError = \\"Unvollständige Formular-Konfiguration: Bitte geben Sie Ihre reCAPTCHA-Schlüssel in den Formulareinstellungen unter "Optionale reCAPTCHA-Sicherheitsprüfung" ein, oder wählen Sie in den Formular-Optionen ein anderes Skript.\\";\\r\\n\\t\\t\\tsystem.warn(\\"Bitte geben Sie auf der Seite \\\\"\\" + article.page.name + \\"\\\\" Ihre reCAPTCHA-Schlüssel in den Formulareinstellungen unter \\\\"Optionale reCAPTCHA-Sicherheitsprüfung\\\\" ein, oder wählen Sie in den Formular-Optionen ein anderes Skript.\\");\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\t// allow only one form with new Captcha per Page\\r\\n\\t\\tvar pageArticles = page.articles;\\r\\n\\t\\tvar thisName = article.widgetName;\\r\\n\\t\\tvar formsWithCaptcha = [];\\r\\n\\t\\tfor ( var i=0; i < pageArticles.count; ++i ) {\\r\\n\\t\\t\\tvar currentArticle = pageArticles.item(i); \\r\\n\\t\\t\\tif ( currentArticle.widgetName == thisName && currentArticle.value(\\"action_url\\", \\"\\").indexOf(\\"assets/php/formmailer/SendEmailReCaptcha.php\\") > -1 ){\\r\\n\\t\\t\\t\\tformsWithCaptcha.push(currentArticle.id);\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\tif ( formsWithCaptcha.length > 1 && formsWithCaptcha[0] !== article.id ){\\r\\n\\t\\t\\t// found multiple forms with new captcha \\r\\n\\t\\t\\tcaptchaConfigError = \\"Pro Seite ist nur ein Formular-Widget mit Skript \\\\"Via PHP mit Sicherheitsprüfung (NEU)\\\\" erlaubt! Löschen Sie überzählige Formulare oder fassen Sie die Formulare in einem zusammen.\\";\\r\\n\\t\\t\\t// log warning only once, for the first Article found\\r\\n\\t\\t\\tsystem.warn(\\"Pro Seite ist nur ein Formular-Widget mit Skript \\\\"Via PHP mit Sicherheitsprüfung (NEU)\\\\" erlaubt! Auf der Seite \\\\"\\" + article.page.name + \\"\\\\" sind mehrere solche Artikel enthalten. Löschen Sie überzählige Formulare oder fassen Sie die Formulare in einem zusammen.\\");\\r\\n\\t\\t}\\r\\n\\t}\\r\\n\\t\\r\\n\\tif( usesNewCaptcha && invisibleCaptcha == \\"1\\" ){\\r\\n\\t\\tvar captchaClass = \\" zpicaptcha\\";\\r\\n\\t}\\r\\n\\telse {\\r\\n\\t\\tvar captchaClass = \\"\\";\\r\\n\\t}\\r\\n\\t\\r\\n\\t// PHP Config file generation\\r\\n\\tfunction append( appendTo, appendix ) {\\r\\n\\t\\treturn appendTo + appendix + \\"\\r\\n\\";\\r\\n\\t}\\r\\n\\tfunction createFormConfig() {\\r\\n\\t\\tvar configFileName = article.id + \\"_config.inc.php\\";\\r\\n\\t\\tvar configFilePath = project.outputFolder + \\"assets\\\\php\\\\formmailer\\\\\\" + configFileName;\\r\\n\\t\\temail_template = article.valueExpanded(\\"email_template\\",\\"\\");\\r\\n\\t\\tif ( email_template == \\"\\" ){\\r\\n\\t\\t\\t// sane default for when project was converted and template field doesn\\'t exist yet, or user has accidentally emptied the field\\r\\n\\t\\t\\temail_template = \\'

Ein Formular wurde Ihnen von Ihrer Website gesendet

Jemand hat Ihnen ein Formular mit den folgenden Werten gesendet.

[FORM_TABLE]\\';\\r\\n\\t\\t}\\r\\n\\t\\t//email_template = email_template.toString().replace(/\\"/g, \\""\\"); \\r\\n\\t\\temail_template = email_template.toString().replace(/\\'/g, \\"\\\\\\'\\"); \\r\\n\\t\\t\\r\\n\\t\\tvar smtpPort = article.value(\\"smtp-port\\",\\"587\\") !== \\"\\" ? article.value(\\"smtp-port\\",\\"587\\") : \\"587\\";\\r\\n\\t\\tvar smtpUseSsl = article.value(\\"smtp-useSsl\\", \\"tls\\") !== \\"\\" ? article.value(\\"smtp-useSsl\\", \\"tls\\") : \\"tls\\";\\r\\n\\t\\t\\r\\n\\t\\tvar content = \\"\\";\\r\\n\\t\\tcontent = append( content, \\"\\");\\r\\n\\t\\t\\r\\n\\t\\t// Wegschreiben und intern in Publish-Queue hinzuügen.\\r\\n\\t\\tsystem.writeFile( configFilePath, content );\\r\\n\\t\\treturn;\\r\\n\\t}\\r\\n\\t\\r\\n\\tcreateFormConfig();\\t\\r\\n \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( captchaConfigError ){ \\r\\n\\t\\t\\tif ( system.preview){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-headline.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\tFehler! \\r\\n\\t\\t\\t\\t\\t

\\r\\n\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\ncontext.write( captchaConfigError );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t

\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\");\\r\\n\\r\\n \\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\telse{ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-headline.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( article.headline == \\"\\" && system.preview ) { \\r\\n\\t\\t\\t\\t// this adds a little spacer above the form if the form has no headline\\r\\n\\t\\t\\t\\t// in order to improve inline-editing mouse-overs over the article/fields…\\r\\n\\t\\t\\t\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n \\r\\n\\t\\t\\t\\tfor ( var i = 1; i <= article.value(\\"element-count\\"); ++i ) { \\r\\n\\t\\t\\t\\t\\tvar cssClass = \\"\\";\\r\\n\\t\\t\\t\\t\\tif ( article.value(\\"element-isrequired-\\" + i) ) {\\r\\n\\t\\t\\t\\t\\t\\tcssClass += \\"required\\";\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\tvar fieldID = article.valueRaw(\\"element-id-\\" + i); // valueRaw() is used to avoid funny numbers like 6.36083191220278E+17 instead of 636083191220278100 TODO: have Uwe look into why?\\r\\n\\t\\t\\t\\t\\t//var fieldData = system.jsonParse(article.valueRaw(\\"element-data-\\" + i));\\r\\n\\t\\t\\t\\t\\tvar jsonString = article.valueRaw(\\"element-data-\\" + i) || \\'{\\"cssClass\\":\\"c12\\",\\"newLine\\":true}\\';\\r\\n\\t\\t\\t\\t\\tvar fieldData = eval(\\'(\\' + jsonString + \\')\\');\\r\\n\\t\\t\\t\\t\\tif ( fieldData.newLine == false ){\\r\\n\\t\\t\\t\\t\\t\\tvar newlineCssClass = \\"\\";\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\telse{\\r\\n\\t\\t\\t\\t\\t\\tvar newlineCssClass = \\" fieldinnewline\\"; \\t// the Default\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t//system.log(\\"FieldData: \\" + jsonString + \\" / cssClass: \\" + fieldData.cssClass);\\r\\n\\t\\t\\t\\t\\tif ( !article.valueRaw(\\"element-data-\\" + i) ){\\r\\n\\t\\t\\t\\t\\t\\t// converted project without new width settings honor the width set in the form widget\\r\\n\\t\\t\\t\\t\\t\\tvar fieldWidth = article.value(\\"element-width-\\" + i, 0);\\r\\n\\t\\t\\t\\t\\t\\tif ( fieldWidth !== 0 ) {\\r\\n\\t\\t\\t\\t\\t\\t\\tfieldWidth = \\"width: \\" + fieldWidth + \\"px; \\";\\r\\n\\t\\t\\t\\t\\t\\t\\t//fieldWidth = defaultFieldWidth;\\r\\n\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\telse{\\r\\n\\t\\t\\t\\t\\t\\t\\tfieldWidth = \\"\\";\\r\\n\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\tvar elementAttributes = String(article.valueRaw(\\"element-attributes-\\" + i, \\"\\"));\\r\\n\\t\\t\\t\\t\\tvar cssInAttribute = \\"\\";\\r\\n\\t\\t\\t\\t\\tif ( elementAttributes.match(/style=\\\\"([^\\\\"]+)\\\\"/i) ) {\\r\\n\\t\\t\\t\\t\\t\\tcssInAttribute = elementAttributes.match(/style=\\\\"([^\\\\"]+)\\\\"/i)[1] || \\"\\";\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\tif ( article.value(\\'element-type-\\' + i) == \\"radio\\" || \\r\\n\\t\\t\\t\\t\\t\\t article.value(\\'element-type-\\' + i) == \\"checkbox\\" || \\r\\n\\t\\t\\t\\t\\t\\t article.value(\\'element-type-\\' + i) == \\"file\\" \\r\\n\\t\\t\\t\\t\\t\\t){\\r\\n\\t\\t\\t\\t\\t\\t\\t// we need this, so in css we can set a nice bottom margin on the container of checkboxes or radios as we can\\'t set them on the form-field\\r\\n\\t\\t\\t\\t\\t\\t\\tvar extraclass=\\" zp\\" + article.value(\\'element-type-\\' + i);\\r\\n\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\telse {\\r\\n\\t\\t\\t\\t\\t\\t\\tvar extraclass=\\"\\";\\r\\n\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( article.value(\\"element-type-\\" + i) !== \\"hidden\\"){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t>\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\tswitch (article.value(\\"element-type-\\" + i)) {\\r\\n\\t\\t\\t\\t\\t\\t\\t// HTML Radio Buttons\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"radio\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\tvar checkboxValues = article.valueRaw(\\"element-value-\\" + i).toString().split(\\";\\");\\r\\n\\t\\t\\t\\t\\t\\t\\tvar fieldDefault = article.valueRaw(\\"element-default-\\" + i);\\r\\n\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tfor ( var ii = 0; ii < checkboxValues.length; ++ii ) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif ( ii > 0 ) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tcssClass = \\"\\"; //only print required class for first iteration of field \\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( page.attribute(\\"form_item_break\\") == \\"1\\" ) { \\r\\n\\r\\n context.write(\\"
\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// HTML Checkboxes \\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"checkbox\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar checkboxValues = article.valueRaw(\\"element-value-\\" + i).toString().split(\\";\\");\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar fieldDefault = article.valueRaw(\\"element-default-\\" + i);\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tfor ( var ii = 0; ii < checkboxValues.length; ++ii ) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif ( ii > 0 ) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tcssClass = \\"\\"; //only print required class for first iteration of field \\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( page.attribute(\\"form_item_break\\") == \\"1\\" ) { \\r\\n\\r\\n context.write(\\"
\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// HTML Select List\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"select\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar selectValues = article.valueRaw(\\"element-value-\\" + i).toString().split(\\";\\");\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar fieldDefault = article.valueRaw(\\"element-default-\\" + i);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar selectSize = \\"1\\";\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar selectSizeClass = \\"\\";\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-height-\\" + i) > 1 ) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tselectSize = article.value(\\"element-height-\\" + i);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tselectSizeClass = \\" zpmultilineselect\\";\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar selectMultiple = \\"\\";\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-ismultiline-\\" + i) ) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tselectMultiple = \\"multiple\\";\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// HTML input Text Field which could be of a new HTML5 type (email|number|color|search etc. --> see defaults in ./widget.json)\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"text\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar maxLength = \\"\\";\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar elementType = \\"text\\";\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-height-\\" + i) > 0 ) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tmaxLength = \\' maxlength=\\"\\' + article.value(\\"element-height-\\" + i) + \\'\\"\\';\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-inputtype-\\" + i) ){\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\telementType = article.value(\\"element-inputtype-\\" + i);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n \\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// HTML Text-Area\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"textarea\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// Hidden Text Field - ZP-Type \\"Zusatztext\\"\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"hidden\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// ZP-Type \\"Beschreibungstext\\"\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"info\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\ncontext.write( article.value(\\"element-value-\\" + i) );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// ZP-Type Separator Line\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"separator\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t
 
\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// ZP File Upload\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"file\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// Default fallback HTML input with whatever element-type is passed\\r\\n\\t\\t\\t\\t\\t\\t\\tdefault:\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t} // switch\\r\\n\\t\\t\\t\\t\\t\\t\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( article.value(\\"element-type-\\" + i) !== \\"hidden\\"){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t} // for\\r\\n\\t\\t\\t\\t\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( usesNewCaptcha && invisibleCaptcha == \\"0\\" ){ \\t\\r\\n\\t\\t\\t\\t\\t// show Captcha V2 \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else if ( usesNewCaptcha && invisibleCaptcha == \\"1\\" ){ \\t\\r\\n\\t\\t\\t\\t\\t// show new Captcha invisible \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else {\\t\\r\\n\\t\\t\\t\\t\\t// show old Captcha because the user selected the corresponding form action ends in \\"SendEmail.php\\" and not \\"?sc\\"\\r\\n\\t\\t\\t\\t\\tvar scriptName = \\"SendEmail.php\\";\\r\\n\\t\\t\\t\\t\\tif ( action_url.substring(action_url.length - scriptName.length, action_url.length) == scriptName ) { \\r\\n\\t\\t\\t\\t\\t\\t\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t} \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( usesNewCaptcha && invisibleCaptcha == \\"1\\" ){ \\t\\r\\n\\t\\t\\t\\t\\t// show new Captcha invisible \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( \\"false\\" == \\"true\\" ) { \\r\\n\\r\\n context.write(\\"\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n// End source file: \\'C:\\Users\\Michael\\AppData\\Local\\Zeta Producer 14\\packaging\\widgets\\formular\\standard.html\\'.\\r\\n};\\r\\n\\r\\n/* Shortcuts. */\\r\\narticle = context.article;\\r\\npage = context.page;\\r\\nprojectFolder = context.projectFolder;\\r\\nproject = context.project;\\r\\nsystem = context.system;\\r\\n\\r\\n\\r\\nnew SE636875075122339248().executeScript();\\r\\n", SourceContext=0, WasCanceled=False, Message="Der Suchschlüssel wurde in keinem Datensatz gefunden.", Data= [ "COM Exception" = COMException { ErrorCode=-2147352319, Message="Ausnahme von HRESULT: 0x80020101", Data= [ ] , InnerException=null, TargetSite=RuntimeMethodInfo: ParseScriptText, StackTrace=" bei ZetaProducer.SuperSlimScriptingEngine.Infrastructure.IActiveScriptParse32.ParseScriptText(String code, String itemName, Object context, String delimiter, IntPtr sourceContextCookie, UInt32 startingLineNumber, ScriptText flags, IntPtr result, EXCEPINFO& exceptionInfo)\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\\P\\ZP\\14.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 119.", HelpLink=null, Source="ZetaProducer.SuperSlimScriptingEngine", HResult=-2147352319 } ] , InnerException=null, TargetSite=RuntimeMethodInfo: doExecute, StackTrace=" bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\\P\\ZP\\14.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 174.\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.Execute(String script) in c:\\P\\ZP\\14.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 72.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\\P\\ZP\\14.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreterHelper.cs:Zeile 180.", HelpLink=null, Source="ActiveScriptSite.ScriptError", HResult=-2146233088 }, TargetSite=RuntimeMethodInfo: ThrowHostException, StackTrace=" bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.ThrowHostException(Exception exception) in c:\\P\\ZP\\14.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 108.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\\P\\ZP\\14.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreterHelper.cs:Zeile 224.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreter.doRun(RenderingContext renderingContext, String runString) in c:\\P\\ZP\\14.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreter.cs:Zeile 42.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreter.Run(RenderingContext renderingContext, String runString) in c:\\P\\ZP\\14.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreter.cs:Zeile 21.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.HighLevel.RenderingScriptProcessor.Process(String textToProcess) in c:\\P\\ZP\\14.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\HighLevel\\RenderingScriptProcessor.cs:Zeile 25.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Macros.RenderingScriptingMacrosNew.doProcess(String textToProcess) in c:\\P\\ZP\\14.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Macros\\RenderingScriptingMacrosNew.cs:Zeile 36.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Macros.RenderingScriptingMacrosNew.Process(String textToProcess) in c:\\P\\ZP\\14.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Macros\\RenderingScriptingMacrosNew.cs:Zeile 24.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Core.RenderingDispatcher.doProcess(String textToProcess) in c:\\P\\ZP\\14.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Core\\RenderingDispatcher.cs:Zeile 49.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Core.RenderingDispatcher.Process(String textToProcess) in c:\\P\\ZP\\14.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Core\\RenderingDispatcher.cs:Zeile 28.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Dom.WebArticleScriptObject.doDispatch(String textToProcess, String filePath, WebArticle article, Nullable`1 makeAllRenderedUrlsAbsolute) in c:\\P\\ZP\\14.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Dom\\WebArticleScriptObject.cs:Zeile 340.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Dom.WebArticleScriptObject.render(Object makeAllRenderedUrlsAbsolute) in c:\\P\\ZP\\14.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Dom\\WebArticleScriptObject.cs:Zeile 250.", HelpLink=null, Source="function SE636875075122339248() {}\\r\\n\\r\\n\\r\\nSE636875075122339248.prototype.executeScript = function(){\\r\\n// Start source file: \\'C:\\Users\\Michael\\AppData\\Local\\Zeta Producer 14\\packaging\\widgets\\formular\\standard.html\\'.\\r\\n\\r\\n\\r\\n\\tvar zpformversion = \\"zp14\\";\\r\\n\\tif ( article.value(\\"zpform-version\\", \\"14\\") !== \\"\\" ){\\r\\n\\t\\tzpformversion = \\"zp\\" + article.value(\\"zpform-version\\", \\"14\\");\\r\\n\\t}\\r\\n\\t\\r\\n\\tvar action_url = article.value(\\"action_url\\", \\"\\");\\r\\n\\tif ( action_url.indexOf(\\"http\\") !== 0 ){\\r\\n\\t\\t// action_url does not start with \\"http\\" and is thus absolute, so we need the pathToRoot\\r\\n\\t\\taction_url = page.pathToRoot + action_url;\\r\\n\\t}\\r\\n\\t\\r\\n\\tvar email_address = article.value(\\"email_address\\", \\"\\");\\r\\n\\temail_address = email_address.replace(/ /g,\\"\\"); \\t// remove blanks in email-address\\r\\n\\temail_address = system.encrypt(email_address);\\t\\t// encrypt email-address for anti spam measures\\r\\n\\tvar email_subject = article.value(\\"email_subject\\", \\"\\");\\r\\n\\tvar error_page_url = ( isNull(project.getPage(article.value(\\"error_page_url\\").split(\\"?\\")[0])) ) ? page.absoluteUrl : project.getPage(article.value(\\"error_page_url\\").split(\\"?\\")[0]).absoluteUrl;\\r\\n\\tvar error_page_qs = article.value(\\"error_page_url\\").split(\\"?\\")[1] || \\"\\";\\r\\n\\tif ( error_page_qs !== \\"\\" ){\\r\\n\\t\\terror_page_qs = \\"?\\" + error_page_qs;\\r\\n\\t}\\r\\n\\tvar success_page_url = ( isNull(project.getPage(article.value(\\"success_page_url\\").split(\\"?\\")[0])) ) ? page.absoluteUrl : project.getPage(article.value(\\"success_page_url\\").split(\\"?\\")[0]).absoluteUrl;\\r\\n\\tvar success_page_qs = article.value(\\"success_page_url\\").split(\\"?\\")[1] || \\"\\";\\r\\n\\tif ( success_page_qs !== \\"\\" ){\\r\\n\\t\\tsuccess_page_qs = \\"?\\" + success_page_qs;\\r\\n\\t}\\r\\n\\t\\r\\n\\tvar siteKey = article.value(\\"recaptcha-publickey\\", \\"\\");\\r\\n\\tvar secretKey = article.value(\\"recaptcha-secretkey\\", \\"\\");\\r\\n\\tvar invisibleCaptcha = article.value(\\"recaptcha-invisible\\", \\"0\\");\\r\\n\\tvar captchaConfigError = \\"\\";\\r\\n\\tvar defaultFieldWidth = 300;\\r\\n\\tvar usesNewCaptcha = false;\\r\\n\\tvar email_template;\\r\\n\\tvar usesmtp = article.value(\\"smtp-useSmtp\\", \\"0\\");\\r\\n\\tif ( usesmtp == \\"1\\" ){\\r\\n\\t\\tusesmtp = \\"port: \\\\'\\" + article.value(\\"smtp-port\\",\\"587\\") + \\"' ssl: '\\" + article.value(\\"smtp-useSsl\\", \\"none\\") + \\"'\\";\\r\\n\\t}\\r\\n\\telse{\\r\\n\\t\\tusesmtp = \\"no\\";\\r\\n\\t}\\r\\n\\t\\r\\n\\t// display an error if Skript with new Captcha is chosen but no keys have been entered\\r\\n\\tif ( action_url.indexOf(\\"assets/php/formmailer/SendEmailReCaptcha.php\\") > -1 ){\\r\\n\\t\\tusesNewCaptcha = true;\\r\\n\\t\\t// verify that all keys are provided\\r\\n\\t\\tif ( siteKey == \\"\\" || secretKey == \\"\\" ){\\r\\n\\t\\t\\tcaptchaConfigError = \\"Unvollständige Formular-Konfiguration: Bitte geben Sie Ihre reCAPTCHA-Schlüssel in den Formulareinstellungen unter "Optionale reCAPTCHA-Sicherheitsprüfung" ein, oder wählen Sie in den Formular-Optionen ein anderes Skript.\\";\\r\\n\\t\\t\\tsystem.warn(\\"Bitte geben Sie auf der Seite \\\\"\\" + article.page.name + \\"\\\\" Ihre reCAPTCHA-Schlüssel in den Formulareinstellungen unter \\\\"Optionale reCAPTCHA-Sicherheitsprüfung\\\\" ein, oder wählen Sie in den Formular-Optionen ein anderes Skript.\\");\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\t// allow only one form with new Captcha per Page\\r\\n\\t\\tvar pageArticles = page.articles;\\r\\n\\t\\tvar thisName = article.widgetName;\\r\\n\\t\\tvar formsWithCaptcha = [];\\r\\n\\t\\tfor ( var i=0; i < pageArticles.count; ++i ) {\\r\\n\\t\\t\\tvar currentArticle = pageArticles.item(i); \\r\\n\\t\\t\\tif ( currentArticle.widgetName == thisName && currentArticle.value(\\"action_url\\", \\"\\").indexOf(\\"assets/php/formmailer/SendEmailReCaptcha.php\\") > -1 ){\\r\\n\\t\\t\\t\\tformsWithCaptcha.push(currentArticle.id);\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\tif ( formsWithCaptcha.length > 1 && formsWithCaptcha[0] !== article.id ){\\r\\n\\t\\t\\t// found multiple forms with new captcha \\r\\n\\t\\t\\tcaptchaConfigError = \\"Pro Seite ist nur ein Formular-Widget mit Skript \\\\"Via PHP mit Sicherheitsprüfung (NEU)\\\\" erlaubt! Löschen Sie überzählige Formulare oder fassen Sie die Formulare in einem zusammen.\\";\\r\\n\\t\\t\\t// log warning only once, for the first Article found\\r\\n\\t\\t\\tsystem.warn(\\"Pro Seite ist nur ein Formular-Widget mit Skript \\\\"Via PHP mit Sicherheitsprüfung (NEU)\\\\" erlaubt! Auf der Seite \\\\"\\" + article.page.name + \\"\\\\" sind mehrere solche Artikel enthalten. Löschen Sie überzählige Formulare oder fassen Sie die Formulare in einem zusammen.\\");\\r\\n\\t\\t}\\r\\n\\t}\\r\\n\\t\\r\\n\\tif( usesNewCaptcha && invisibleCaptcha == \\"1\\" ){\\r\\n\\t\\tvar captchaClass = \\" zpicaptcha\\";\\r\\n\\t}\\r\\n\\telse {\\r\\n\\t\\tvar captchaClass = \\"\\";\\r\\n\\t}\\r\\n\\t\\r\\n\\t// PHP Config file generation\\r\\n\\tfunction append( appendTo, appendix ) {\\r\\n\\t\\treturn appendTo + appendix + \\"\\r\\n\\";\\r\\n\\t}\\r\\n\\tfunction createFormConfig() {\\r\\n\\t\\tvar configFileName = article.id + \\"_config.inc.php\\";\\r\\n\\t\\tvar configFilePath = project.outputFolder + \\"assets\\\\php\\\\formmailer\\\\\\" + configFileName;\\r\\n\\t\\temail_template = article.valueExpanded(\\"email_template\\",\\"\\");\\r\\n\\t\\tif ( email_template == \\"\\" ){\\r\\n\\t\\t\\t// sane default for when project was converted and template field doesn\\'t exist yet, or user has accidentally emptied the field\\r\\n\\t\\t\\temail_template = \\'

Ein Formular wurde Ihnen von Ihrer Website gesendet

Jemand hat Ihnen ein Formular mit den folgenden Werten gesendet.

[FORM_TABLE]\\';\\r\\n\\t\\t}\\r\\n\\t\\t//email_template = email_template.toString().replace(/\\"/g, \\""\\"); \\r\\n\\t\\temail_template = email_template.toString().replace(/\\'/g, \\"\\\\\\'\\"); \\r\\n\\t\\t\\r\\n\\t\\tvar smtpPort = article.value(\\"smtp-port\\",\\"587\\") !== \\"\\" ? article.value(\\"smtp-port\\",\\"587\\") : \\"587\\";\\r\\n\\t\\tvar smtpUseSsl = article.value(\\"smtp-useSsl\\", \\"tls\\") !== \\"\\" ? article.value(\\"smtp-useSsl\\", \\"tls\\") : \\"tls\\";\\r\\n\\t\\t\\r\\n\\t\\tvar content = \\"\\";\\r\\n\\t\\tcontent = append( content, \\"\\");\\r\\n\\t\\t\\r\\n\\t\\t// Wegschreiben und intern in Publish-Queue hinzuügen.\\r\\n\\t\\tsystem.writeFile( configFilePath, content );\\r\\n\\t\\treturn;\\r\\n\\t}\\r\\n\\t\\r\\n\\tcreateFormConfig();\\t\\r\\n \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( captchaConfigError ){ \\r\\n\\t\\t\\tif ( system.preview){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-headline.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\tFehler! \\r\\n\\t\\t\\t\\t\\t

\\r\\n\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\ncontext.write( captchaConfigError );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t

\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\");\\r\\n\\r\\n \\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\telse{ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-headline.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( article.headline == \\"\\" && system.preview ) { \\r\\n\\t\\t\\t\\t// this adds a little spacer above the form if the form has no headline\\r\\n\\t\\t\\t\\t// in order to improve inline-editing mouse-overs over the article/fields…\\r\\n\\t\\t\\t\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n \\r\\n\\t\\t\\t\\tfor ( var i = 1; i <= article.value(\\"element-count\\"); ++i ) { \\r\\n\\t\\t\\t\\t\\tvar cssClass = \\"\\";\\r\\n\\t\\t\\t\\t\\tif ( article.value(\\"element-isrequired-\\" + i) ) {\\r\\n\\t\\t\\t\\t\\t\\tcssClass += \\"required\\";\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\tvar fieldID = article.valueRaw(\\"element-id-\\" + i); // valueRaw() is used to avoid funny numbers like 6.36083191220278E+17 instead of 636083191220278100 TODO: have Uwe look into why?\\r\\n\\t\\t\\t\\t\\t//var fieldData = system.jsonParse(article.valueRaw(\\"element-data-\\" + i));\\r\\n\\t\\t\\t\\t\\tvar jsonString = article.valueRaw(\\"element-data-\\" + i) || \\'{\\"cssClass\\":\\"c12\\",\\"newLine\\":true}\\';\\r\\n\\t\\t\\t\\t\\tvar fieldData = eval(\\'(\\' + jsonString + \\')\\');\\r\\n\\t\\t\\t\\t\\tif ( fieldData.newLine == false ){\\r\\n\\t\\t\\t\\t\\t\\tvar newlineCssClass = \\"\\";\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\telse{\\r\\n\\t\\t\\t\\t\\t\\tvar newlineCssClass = \\" fieldinnewline\\"; \\t// the Default\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t//system.log(\\"FieldData: \\" + jsonString + \\" / cssClass: \\" + fieldData.cssClass);\\r\\n\\t\\t\\t\\t\\tif ( !article.valueRaw(\\"element-data-\\" + i) ){\\r\\n\\t\\t\\t\\t\\t\\t// converted project without new width settings honor the width set in the form widget\\r\\n\\t\\t\\t\\t\\t\\tvar fieldWidth = article.value(\\"element-width-\\" + i, 0);\\r\\n\\t\\t\\t\\t\\t\\tif ( fieldWidth !== 0 ) {\\r\\n\\t\\t\\t\\t\\t\\t\\tfieldWidth = \\"width: \\" + fieldWidth + \\"px; \\";\\r\\n\\t\\t\\t\\t\\t\\t\\t//fieldWidth = defaultFieldWidth;\\r\\n\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\telse{\\r\\n\\t\\t\\t\\t\\t\\t\\tfieldWidth = \\"\\";\\r\\n\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\tvar elementAttributes = String(article.valueRaw(\\"element-attributes-\\" + i, \\"\\"));\\r\\n\\t\\t\\t\\t\\tvar cssInAttribute = \\"\\";\\r\\n\\t\\t\\t\\t\\tif ( elementAttributes.match(/style=\\\\"([^\\\\"]+)\\\\"/i) ) {\\r\\n\\t\\t\\t\\t\\t\\tcssInAttribute = elementAttributes.match(/style=\\\\"([^\\\\"]+)\\\\"/i)[1] || \\"\\";\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\tif ( article.value(\\'element-type-\\' + i) == \\"radio\\" || \\r\\n\\t\\t\\t\\t\\t\\t article.value(\\'element-type-\\' + i) == \\"checkbox\\" || \\r\\n\\t\\t\\t\\t\\t\\t article.value(\\'element-type-\\' + i) == \\"file\\" \\r\\n\\t\\t\\t\\t\\t\\t){\\r\\n\\t\\t\\t\\t\\t\\t\\t// we need this, so in css we can set a nice bottom margin on the container of checkboxes or radios as we can\\'t set them on the form-field\\r\\n\\t\\t\\t\\t\\t\\t\\tvar extraclass=\\" zp\\" + article.value(\\'element-type-\\' + i);\\r\\n\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\telse {\\r\\n\\t\\t\\t\\t\\t\\t\\tvar extraclass=\\"\\";\\r\\n\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( article.value(\\"element-type-\\" + i) !== \\"hidden\\"){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t>\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\tswitch (article.value(\\"element-type-\\" + i)) {\\r\\n\\t\\t\\t\\t\\t\\t\\t// HTML Radio Buttons\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"radio\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\tvar checkboxValues = article.valueRaw(\\"element-value-\\" + i).toString().split(\\";\\");\\r\\n\\t\\t\\t\\t\\t\\t\\tvar fieldDefault = article.valueRaw(\\"element-default-\\" + i);\\r\\n\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tfor ( var ii = 0; ii < checkboxValues.length; ++ii ) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif ( ii > 0 ) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tcssClass = \\"\\"; //only print required class for first iteration of field \\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( page.attribute(\\"form_item_break\\") == \\"1\\" ) { \\r\\n\\r\\n context.write(\\"
\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// HTML Checkboxes \\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"checkbox\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar checkboxValues = article.valueRaw(\\"element-value-\\" + i).toString().split(\\";\\");\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar fieldDefault = article.valueRaw(\\"element-default-\\" + i);\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tfor ( var ii = 0; ii < checkboxValues.length; ++ii ) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif ( ii > 0 ) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tcssClass = \\"\\"; //only print required class for first iteration of field \\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( page.attribute(\\"form_item_break\\") == \\"1\\" ) { \\r\\n\\r\\n context.write(\\"
\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// HTML Select List\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"select\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar selectValues = article.valueRaw(\\"element-value-\\" + i).toString().split(\\";\\");\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar fieldDefault = article.valueRaw(\\"element-default-\\" + i);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar selectSize = \\"1\\";\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar selectSizeClass = \\"\\";\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-height-\\" + i) > 1 ) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tselectSize = article.value(\\"element-height-\\" + i);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tselectSizeClass = \\" zpmultilineselect\\";\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar selectMultiple = \\"\\";\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-ismultiline-\\" + i) ) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tselectMultiple = \\"multiple\\";\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// HTML input Text Field which could be of a new HTML5 type (email|number|color|search etc. --> see defaults in ./widget.json)\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"text\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar maxLength = \\"\\";\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar elementType = \\"text\\";\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-height-\\" + i) > 0 ) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tmaxLength = \\' maxlength=\\"\\' + article.value(\\"element-height-\\" + i) + \\'\\"\\';\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-inputtype-\\" + i) ){\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\telementType = article.value(\\"element-inputtype-\\" + i);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n \\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// HTML Text-Area\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"textarea\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// Hidden Text Field - ZP-Type \\"Zusatztext\\"\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"hidden\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// ZP-Type \\"Beschreibungstext\\"\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"info\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\ncontext.write( article.value(\\"element-value-\\" + i) );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// ZP-Type Separator Line\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"separator\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t
 
\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// ZP File Upload\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"file\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// Default fallback HTML input with whatever element-type is passed\\r\\n\\t\\t\\t\\t\\t\\t\\tdefault:\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t} // switch\\r\\n\\t\\t\\t\\t\\t\\t\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( article.value(\\"element-type-\\" + i) !== \\"hidden\\"){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t} // for\\r\\n\\t\\t\\t\\t\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( usesNewCaptcha && invisibleCaptcha == \\"0\\" ){ \\t\\r\\n\\t\\t\\t\\t\\t// show Captcha V2 \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else if ( usesNewCaptcha && invisibleCaptcha == \\"1\\" ){ \\t\\r\\n\\t\\t\\t\\t\\t// show new Captcha invisible \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else {\\t\\r\\n\\t\\t\\t\\t\\t// show old Captcha because the user selected the corresponding form action ends in \\"SendEmail.php\\" and not \\"?sc\\"\\r\\n\\t\\t\\t\\t\\tvar scriptName = \\"SendEmail.php\\";\\r\\n\\t\\t\\t\\t\\tif ( action_url.substring(action_url.length - scriptName.length, action_url.length) == scriptName ) { \\r\\n\\t\\t\\t\\t\\t\\t\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t} \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( usesNewCaptcha && invisibleCaptcha == \\"1\\" ){ \\t\\r\\n\\t\\t\\t\\t\\t// show new Captcha invisible \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( \\"false\\" == \\"true\\" ) { \\r\\n\\r\\n context.write(\\"\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n// End source file: \\'C:\\Users\\Michael\\AppData\\Local\\Zeta Producer 14\\packaging\\widgets\\formular\\standard.html\\'.\\r\\n};\\r\\n\\r\\n/* Shortcuts. */\\r\\narticle = context.article;\\r\\npage = context.page;\\r\\nprojectFolder = context.projectFolder;\\r\\nproject = context.project;\\r\\nsystem = context.system;\\r\\n\\r\\n\\r\\nnew SE636875075122339248().executeScript();\\r\\n", HResult=-2146233088 } -->Der Suchschlüssel wurde in keinem Datensatz gefunden. ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngineException ----------------- Der Suchschlüssel wurde in keinem Datensatz gefunden. ----------------- bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\P\ZP\14.3\ZetaProducerMain\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 174. bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.Execute(String script) in c:\P\ZP\14.3\ZetaProducerMain\Source\Core\SuperSlimScriptingEngine\SlimScriptEngine.cs:Zeile 72. bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\P\ZP\14.3\ZetaProducerMain\Source\Core\RuntimeBusinessLogic\Rendering\Scripting\Engine\RenderingInterpreterHelper.cs:Zeile 180. SlimScriptEngineException { ExcepInfo=EXCEPINFO { }, Description="Der Suchschlüssel wurde in keinem Datensatz gefunden.", LineNumber=119, ColumnNumber=2, SourceLine="\\t\\tsystem.writeFile( configFilePath, content );", FullSourceCode="function SE636875075122339248() {}\\r\\n\\r\\n\\r\\nSE636875075122339248.prototype.executeScript = function(){\\r\\n// Start source file: \\'C:\\Users\\Michael\\AppData\\Local\\Zeta Producer 14\\packaging\\widgets\\formular\\standard.html\\'.\\r\\n\\r\\n\\r\\n\\tvar zpformversion = \\"zp14\\";\\r\\n\\tif ( article.value(\\"zpform-version\\", \\"14\\") !== \\"\\" ){\\r\\n\\t\\tzpformversion = \\"zp\\" + article.value(\\"zpform-version\\", \\"14\\");\\r\\n\\t}\\r\\n\\t\\r\\n\\tvar action_url = article.value(\\"action_url\\", \\"\\");\\r\\n\\tif ( action_url.indexOf(\\"http\\") !== 0 ){\\r\\n\\t\\t// action_url does not start with \\"http\\" and is thus absolute, so we need the pathToRoot\\r\\n\\t\\taction_url = page.pathToRoot + action_url;\\r\\n\\t}\\r\\n\\t\\r\\n\\tvar email_address = article.value(\\"email_address\\", \\"\\");\\r\\n\\temail_address = email_address.replace(/ /g,\\"\\"); \\t// remove blanks in email-address\\r\\n\\temail_address = system.encrypt(email_address);\\t\\t// encrypt email-address for anti spam measures\\r\\n\\tvar email_subject = article.value(\\"email_subject\\", \\"\\");\\r\\n\\tvar error_page_url = ( isNull(project.getPage(article.value(\\"error_page_url\\").split(\\"?\\")[0])) ) ? page.absoluteUrl : project.getPage(article.value(\\"error_page_url\\").split(\\"?\\")[0]).absoluteUrl;\\r\\n\\tvar error_page_qs = article.value(\\"error_page_url\\").split(\\"?\\")[1] || \\"\\";\\r\\n\\tif ( error_page_qs !== \\"\\" ){\\r\\n\\t\\terror_page_qs = \\"?\\" + error_page_qs;\\r\\n\\t}\\r\\n\\tvar success_page_url = ( isNull(project.getPage(article.value(\\"success_page_url\\").split(\\"?\\")[0])) ) ? page.absoluteUrl : project.getPage(article.value(\\"success_page_url\\").split(\\"?\\")[0]).absoluteUrl;\\r\\n\\tvar success_page_qs = article.value(\\"success_page_url\\").split(\\"?\\")[1] || \\"\\";\\r\\n\\tif ( success_page_qs !== \\"\\" ){\\r\\n\\t\\tsuccess_page_qs = \\"?\\" + success_page_qs;\\r\\n\\t}\\r\\n\\t\\r\\n\\tvar siteKey = article.value(\\"recaptcha-publickey\\", \\"\\");\\r\\n\\tvar secretKey = article.value(\\"recaptcha-secretkey\\", \\"\\");\\r\\n\\tvar invisibleCaptcha = article.value(\\"recaptcha-invisible\\", \\"0\\");\\r\\n\\tvar captchaConfigError = \\"\\";\\r\\n\\tvar defaultFieldWidth = 300;\\r\\n\\tvar usesNewCaptcha = false;\\r\\n\\tvar email_template;\\r\\n\\tvar usesmtp = article.value(\\"smtp-useSmtp\\", \\"0\\");\\r\\n\\tif ( usesmtp == \\"1\\" ){\\r\\n\\t\\tusesmtp = \\"port: \\\\'\\" + article.value(\\"smtp-port\\",\\"587\\") + \\"' ssl: '\\" + article.value(\\"smtp-useSsl\\", \\"none\\") + \\"'\\";\\r\\n\\t}\\r\\n\\telse{\\r\\n\\t\\tusesmtp = \\"no\\";\\r\\n\\t}\\r\\n\\t\\r\\n\\t// display an error if Skript with new Captcha is chosen but no keys have been entered\\r\\n\\tif ( action_url.indexOf(\\"assets/php/formmailer/SendEmailReCaptcha.php\\") > -1 ){\\r\\n\\t\\tusesNewCaptcha = true;\\r\\n\\t\\t// verify that all keys are provided\\r\\n\\t\\tif ( siteKey == \\"\\" || secretKey == \\"\\" ){\\r\\n\\t\\t\\tcaptchaConfigError = \\"Unvollständige Formular-Konfiguration: Bitte geben Sie Ihre reCAPTCHA-Schlüssel in den Formulareinstellungen unter "Optionale reCAPTCHA-Sicherheitsprüfung" ein, oder wählen Sie in den Formular-Optionen ein anderes Skript.\\";\\r\\n\\t\\t\\tsystem.warn(\\"Bitte geben Sie auf der Seite \\\\"\\" + article.page.name + \\"\\\\" Ihre reCAPTCHA-Schlüssel in den Formulareinstellungen unter \\\\"Optionale reCAPTCHA-Sicherheitsprüfung\\\\" ein, oder wählen Sie in den Formular-Optionen ein anderes Skript.\\");\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\t// allow only one form with new Captcha per Page\\r\\n\\t\\tvar pageArticles = page.articles;\\r\\n\\t\\tvar thisName = article.widgetName;\\r\\n\\t\\tvar formsWithCaptcha = [];\\r\\n\\t\\tfor ( var i=0; i < pageArticles.count; ++i ) {\\r\\n\\t\\t\\tvar currentArticle = pageArticles.item(i); \\r\\n\\t\\t\\tif ( currentArticle.widgetName == thisName && currentArticle.value(\\"action_url\\", \\"\\").indexOf(\\"assets/php/formmailer/SendEmailReCaptcha.php\\") > -1 ){\\r\\n\\t\\t\\t\\tformsWithCaptcha.push(currentArticle.id);\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\tif ( formsWithCaptcha.length > 1 && formsWithCaptcha[0] !== article.id ){\\r\\n\\t\\t\\t// found multiple forms with new captcha \\r\\n\\t\\t\\tcaptchaConfigError = \\"Pro Seite ist nur ein Formular-Widget mit Skript \\\\"Via PHP mit Sicherheitsprüfung (NEU)\\\\" erlaubt! Löschen Sie überzählige Formulare oder fassen Sie die Formulare in einem zusammen.\\";\\r\\n\\t\\t\\t// log warning only once, for the first Article found\\r\\n\\t\\t\\tsystem.warn(\\"Pro Seite ist nur ein Formular-Widget mit Skript \\\\"Via PHP mit Sicherheitsprüfung (NEU)\\\\" erlaubt! Auf der Seite \\\\"\\" + article.page.name + \\"\\\\" sind mehrere solche Artikel enthalten. Löschen Sie überzählige Formulare oder fassen Sie die Formulare in einem zusammen.\\");\\r\\n\\t\\t}\\r\\n\\t}\\r\\n\\t\\r\\n\\tif( usesNewCaptcha && invisibleCaptcha == \\"1\\" ){\\r\\n\\t\\tvar captchaClass = \\" zpicaptcha\\";\\r\\n\\t}\\r\\n\\telse {\\r\\n\\t\\tvar captchaClass = \\"\\";\\r\\n\\t}\\r\\n\\t\\r\\n\\t// PHP Config file generation\\r\\n\\tfunction append( appendTo, appendix ) {\\r\\n\\t\\treturn appendTo + appendix + \\"\\r\\n\\";\\r\\n\\t}\\r\\n\\tfunction createFormConfig() {\\r\\n\\t\\tvar configFileName = article.id + \\"_config.inc.php\\";\\r\\n\\t\\tvar configFilePath = project.outputFolder + \\"assets\\\\php\\\\formmailer\\\\\\" + configFileName;\\r\\n\\t\\temail_template = article.valueExpanded(\\"email_template\\",\\"\\");\\r\\n\\t\\tif ( email_template == \\"\\" ){\\r\\n\\t\\t\\t// sane default for when project was converted and template field doesn\\'t exist yet, or user has accidentally emptied the field\\r\\n\\t\\t\\temail_template = \\'

Ein Formular wurde Ihnen von Ihrer Website gesendet

Jemand hat Ihnen ein Formular mit den folgenden Werten gesendet.

[FORM_TABLE]\\';\\r\\n\\t\\t}\\r\\n\\t\\t//email_template = email_template.toString().replace(/\\"/g, \\""\\"); \\r\\n\\t\\temail_template = email_template.toString().replace(/\\'/g, \\"\\\\\\'\\"); \\r\\n\\t\\t\\r\\n\\t\\tvar smtpPort = article.value(\\"smtp-port\\",\\"587\\") !== \\"\\" ? article.value(\\"smtp-port\\",\\"587\\") : \\"587\\";\\r\\n\\t\\tvar smtpUseSsl = article.value(\\"smtp-useSsl\\", \\"tls\\") !== \\"\\" ? article.value(\\"smtp-useSsl\\", \\"tls\\") : \\"tls\\";\\r\\n\\t\\t\\r\\n\\t\\tvar content = \\"\\";\\r\\n\\t\\tcontent = append( content, \\"\\");\\r\\n\\t\\t\\r\\n\\t\\t// Wegschreiben und intern in Publish-Queue hinzuügen.\\r\\n\\t\\tsystem.writeFile( configFilePath, content );\\r\\n\\t\\treturn;\\r\\n\\t}\\r\\n\\t\\r\\n\\tcreateFormConfig();\\t\\r\\n \\r\\n\\r\\n context.write(\\"\\r\\n\\r\\n\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-begin.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\");\\r\\n\\r\\n if ( captchaConfigError ){ \\r\\n\\t\\t\\tif ( system.preview){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-headline.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\tFehler! \\r\\n\\t\\t\\t\\t\\t

\\r\\n\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\ncontext.write( captchaConfigError );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t

\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\");\\r\\n\\r\\n \\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\telse{ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-headline.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n if ( article.headline == \\"\\" && system.preview ) { \\r\\n\\t\\t\\t\\t// this adds a little spacer above the form if the form has no headline\\r\\n\\t\\t\\t\\t// in order to improve inline-editing mouse-overs over the article/fields…\\r\\n\\t\\t\\t\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t \\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n \\r\\n\\t\\t\\t\\tfor ( var i = 1; i <= article.value(\\"element-count\\"); ++i ) { \\r\\n\\t\\t\\t\\t\\tvar cssClass = \\"\\";\\r\\n\\t\\t\\t\\t\\tif ( article.value(\\"element-isrequired-\\" + i) ) {\\r\\n\\t\\t\\t\\t\\t\\tcssClass += \\"required\\";\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\tvar fieldID = article.valueRaw(\\"element-id-\\" + i); // valueRaw() is used to avoid funny numbers like 6.36083191220278E+17 instead of 636083191220278100 TODO: have Uwe look into why?\\r\\n\\t\\t\\t\\t\\t//var fieldData = system.jsonParse(article.valueRaw(\\"element-data-\\" + i));\\r\\n\\t\\t\\t\\t\\tvar jsonString = article.valueRaw(\\"element-data-\\" + i) || \\'{\\"cssClass\\":\\"c12\\",\\"newLine\\":true}\\';\\r\\n\\t\\t\\t\\t\\tvar fieldData = eval(\\'(\\' + jsonString + \\')\\');\\r\\n\\t\\t\\t\\t\\tif ( fieldData.newLine == false ){\\r\\n\\t\\t\\t\\t\\t\\tvar newlineCssClass = \\"\\";\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\telse{\\r\\n\\t\\t\\t\\t\\t\\tvar newlineCssClass = \\" fieldinnewline\\"; \\t// the Default\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t//system.log(\\"FieldData: \\" + jsonString + \\" / cssClass: \\" + fieldData.cssClass);\\r\\n\\t\\t\\t\\t\\tif ( !article.valueRaw(\\"element-data-\\" + i) ){\\r\\n\\t\\t\\t\\t\\t\\t// converted project without new width settings honor the width set in the form widget\\r\\n\\t\\t\\t\\t\\t\\tvar fieldWidth = article.value(\\"element-width-\\" + i, 0);\\r\\n\\t\\t\\t\\t\\t\\tif ( fieldWidth !== 0 ) {\\r\\n\\t\\t\\t\\t\\t\\t\\tfieldWidth = \\"width: \\" + fieldWidth + \\"px; \\";\\r\\n\\t\\t\\t\\t\\t\\t\\t//fieldWidth = defaultFieldWidth;\\r\\n\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\telse{\\r\\n\\t\\t\\t\\t\\t\\t\\tfieldWidth = \\"\\";\\r\\n\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\tvar elementAttributes = String(article.valueRaw(\\"element-attributes-\\" + i, \\"\\"));\\r\\n\\t\\t\\t\\t\\tvar cssInAttribute = \\"\\";\\r\\n\\t\\t\\t\\t\\tif ( elementAttributes.match(/style=\\\\"([^\\\\"]+)\\\\"/i) ) {\\r\\n\\t\\t\\t\\t\\t\\tcssInAttribute = elementAttributes.match(/style=\\\\"([^\\\\"]+)\\\\"/i)[1] || \\"\\";\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\tif ( article.value(\\'element-type-\\' + i) == \\"radio\\" || \\r\\n\\t\\t\\t\\t\\t\\t article.value(\\'element-type-\\' + i) == \\"checkbox\\" || \\r\\n\\t\\t\\t\\t\\t\\t article.value(\\'element-type-\\' + i) == \\"file\\" \\r\\n\\t\\t\\t\\t\\t\\t){\\r\\n\\t\\t\\t\\t\\t\\t\\t// we need this, so in css we can set a nice bottom margin on the container of checkboxes or radios as we can\\'t set them on the form-field\\r\\n\\t\\t\\t\\t\\t\\t\\tvar extraclass=\\" zp\\" + article.value(\\'element-type-\\' + i);\\r\\n\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\telse {\\r\\n\\t\\t\\t\\t\\t\\t\\tvar extraclass=\\"\\";\\r\\n\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( article.value(\\"element-type-\\" + i) !== \\"hidden\\"){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t>\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\tswitch (article.value(\\"element-type-\\" + i)) {\\r\\n\\t\\t\\t\\t\\t\\t\\t// HTML Radio Buttons\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"radio\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\tvar checkboxValues = article.valueRaw(\\"element-value-\\" + i).toString().split(\\";\\");\\r\\n\\t\\t\\t\\t\\t\\t\\tvar fieldDefault = article.valueRaw(\\"element-default-\\" + i);\\r\\n\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tfor ( var ii = 0; ii < checkboxValues.length; ++ii ) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif ( ii > 0 ) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tcssClass = \\"\\"; //only print required class for first iteration of field \\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( page.attribute(\\"form_item_break\\") == \\"1\\" ) { \\r\\n\\r\\n context.write(\\"
\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// HTML Checkboxes \\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"checkbox\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar checkboxValues = article.valueRaw(\\"element-value-\\" + i).toString().split(\\";\\");\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar fieldDefault = article.valueRaw(\\"element-default-\\" + i);\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tfor ( var ii = 0; ii < checkboxValues.length; ++ii ) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif ( ii > 0 ) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tcssClass = \\"\\"; //only print required class for first iteration of field \\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( page.attribute(\\"form_item_break\\") == \\"1\\" ) { \\r\\n\\r\\n context.write(\\"
\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// HTML Select List\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"select\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar selectValues = article.valueRaw(\\"element-value-\\" + i).toString().split(\\";\\");\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar fieldDefault = article.valueRaw(\\"element-default-\\" + i);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar selectSize = \\"1\\";\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar selectSizeClass = \\"\\";\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-height-\\" + i) > 1 ) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tselectSize = article.value(\\"element-height-\\" + i);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tselectSizeClass = \\" zpmultilineselect\\";\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar selectMultiple = \\"\\";\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-ismultiline-\\" + i) ) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tselectMultiple = \\"multiple\\";\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// HTML input Text Field which could be of a new HTML5 type (email|number|color|search etc. --> see defaults in ./widget.json)\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"text\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar maxLength = \\"\\";\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar elementType = \\"text\\";\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-height-\\" + i) > 0 ) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tmaxLength = \\' maxlength=\\"\\' + article.value(\\"element-height-\\" + i) + \\'\\"\\';\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tif ( article.value(\\"element-inputtype-\\" + i) ){\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\telementType = article.value(\\"element-inputtype-\\" + i);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n \\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// HTML Text-Area\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"textarea\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// Hidden Text Field - ZP-Type \\"Zusatztext\\"\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"hidden\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// ZP-Type \\"Beschreibungstext\\"\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"info\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\ncontext.write( article.value(\\"element-value-\\" + i) );\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// ZP-Type Separator Line\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"separator\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t
 
\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// ZP File Upload\\r\\n\\t\\t\\t\\t\\t\\t\\tcase \\"file\\":\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t\\t// Default fallback HTML input with whatever element-type is passed\\r\\n\\t\\t\\t\\t\\t\\t\\tdefault:\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t\\t\\t} // switch\\r\\n\\t\\t\\t\\t\\t\\t\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( article.value(\\"element-type-\\" + i) !== \\"hidden\\"){ \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t} // for\\r\\n\\t\\t\\t\\t\\r\\n\\r\\n context.write(\\" \\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( usesNewCaptcha && invisibleCaptcha == \\"0\\" ){ \\t\\r\\n\\t\\t\\t\\t\\t// show Captcha V2 \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else if ( usesNewCaptcha && invisibleCaptcha == \\"1\\" ){ \\t\\r\\n\\t\\t\\t\\t\\t// show new Captcha invisible \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } else {\\t\\r\\n\\t\\t\\t\\t\\t// show old Captcha because the user selected the corresponding form action ends in \\"SendEmail.php\\" and not \\"?sc\\"\\r\\n\\t\\t\\t\\t\\tvar scriptName = \\"SendEmail.php\\";\\r\\n\\t\\t\\t\\t\\tif ( action_url.substring(action_url.length - scriptName.length, action_url.length) == scriptName ) { \\r\\n\\t\\t\\t\\t\\t\\t\\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t\\t\\");\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t} \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( usesNewCaptcha && invisibleCaptcha == \\"1\\" ){ \\t\\r\\n\\t\\t\\t\\t\\t// show new Captcha invisible \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\t
\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\");\\r\\n\\r\\n if ( \\"false\\" == \\"true\\" ) { \\r\\n\\r\\n context.write(\\"\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\t\\t\\t\\t
\\r\\n\\t\\t\\t
\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\");\\r\\n\\r\\n } \\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n\\r\\ncontext.write( system.partial(\\"article-end.html\\") );\\r\\n\\r\\n context.write(\\"\\r\\n\\");\\r\\n// End source file: \\'C:\\Users\\Michael\\AppData\\Local\\Zeta Producer 14\\packaging\\widgets\\formular\\standard.html\\'.\\r\\n};\\r\\n\\r\\n/* Shortcuts. */\\r\\narticle = context.article;\\r\\npage = context.page;\\r\\nprojectFolder = context.projectFolder;\\r\\nproject = context.project;\\r\\nsystem = context.system;\\r\\n\\r\\n\\r\\nnew SE636875075122339248().executeScript();\\r\\n", SourceContext=0, WasCanceled=False, Message="Der Suchschlüssel wurde in keinem Datensatz gefunden.", Data= [ "COM Exception" = COMException { ErrorCode=-2147352319, Message="Ausnahme von HRESULT: 0x80020101", Data= [ ] , InnerException=null, TargetSite=RuntimeMethodInfo: ParseScriptText, StackTrace=" bei ZetaProducer.SuperSlimScriptingEngine.Infrastructure.IActiveScriptParse32.ParseScriptText(String code, String itemName, Object context, String delimiter, IntPtr sourceContextCookie, UInt32 startingLineNumber, ScriptText flags, IntPtr result, EXCEPINFO& exceptionInfo)\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\\P\\ZP\\14.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 119.", HelpLink=null, Source="ZetaProducer.SuperSlimScriptingEngine", HResult=-2147352319 } ] , InnerException=null, TargetSite=RuntimeMethodInfo: doExecute, StackTrace=" bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.doExecute(String script) in c:\\P\\ZP\\14.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 174.\\r\\n bei ZetaProducer.SuperSlimScriptingEngine.SlimScriptEngine.Execute(String script) in c:\\P\\ZP\\14.3\\ZetaProducerMain\\Source\\Core\\SuperSlimScriptingEngine\\SlimScriptEngine.cs:Zeile 72.\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Rendering.Scripting.Engine.RenderingInterpreterHelper.GuardEngineRun(SlimScriptEngine engine, String scriptToExecute, RenderingContext renderingContext, String runString) in c:\\P\\ZP\\14.3\\ZetaProducerMain\\Source\\Core\\RuntimeBusinessLogic\\Rendering\\Scripting\\Engine\\RenderingInterpreterHelper.cs:Zeile 180.", HelpLink=null, Source="ActiveScriptSite.ScriptError", HResult=-2146233088 } Ignoring inner exception because of previous OutOfMemoryException. See https://stackoverflow.com/a/25010668/107625